Bootstrap 5 TutorialLesson 2Free preview
BS5 Get Started
This lesson is part of Bootstrap · All levels
Summary
There are two main ways to use Bootstrap 5: upload it over a CDN or download the files and store them locally. For simple projects, the CDN is the fastest because it's enough to add one <link> tag for CSS and one <script> tag for JavaScript. Always put the Bootstrap bundle tag before the DOM is ready when the script is running. (</body>)
Key points
- There are two ways to use Bootstrap: CDN or local download.
- CDNs need one tag <link> for CSS and one tag <script> for JS bundles.
- The bundle already contains the dropdown and tooltip. (Popper.js) (min.js)
- Include a meta viewport to make it responsive to your mobile device.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.