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
No Content Found.
Exercises & Assignments
No Content Found.
Interview Questions & Answers
No Content Found.