How do you add Bootstrap to a web page?
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/js/bootstrap.bundle.min.js"></script>
The CSS goes in the head, and the JS bundle (which includes Popper) before the closing body tag. You can also use npm (npm install bootstrap) or download the files. Do not forget the viewport meta tag. See Setup and Installation.
Learn more about the similar topics:
| Tutorials |
|---|
| Bootstrap Introduction |
| Bootstrap Get Started |
| Bootstrap Setup and Installation |
| Migrating from Bootstrap 4 to Bootstrap 5 |
| Bootstrap Cheat Sheet |
| Exercises & Assignments |
|---|
| No Content Found. |