Summary:
If you're looking for basic design, stick to a CSS-only file.
If you require interactive elements, also incorporate javascript.
CSS
is essential
JS
is flexible
I recommend referring to the official documentation https://getbootstrap.com/docs/4.4/getting-started/introduction/
"Many of our components rely on JavaScript for functionality. Specifically, they need jQuery, Popper.js, and our JavaScript plugins. Place these scripts near the end of your pages before the closing tag to enable them. Start with jQuery, followed by Popper.js, and then our JavaScript plugins."
In essence, if you desire added features like tooltips or dynamic dropdowns, opt for javascript. For simple tasks such as styling and sizing, stick to the CSS link alone (e.g., buttons).
However, if you're using this for learning purposes, consider importing all files initially to avoid any import issues.
Once you feel comfortable, gradually transition to using one CDN link at a time.
If you plan to use bootstrap in a live website, consider utilizing the npm
package instead.
npm i bootstrap
(Start with CDN learning first, then transition to npm once you grasp the fundamentals)
Don't forget to utilize the <link>
tag to have HTML access the CSS file. Simply copy the initial link presented when you open the dropdown menu
https://i.sstatic.net/Ye6mu.png