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.
Interview Questions & Answers
What is Bootstrap?
What are the advantages of Bootstrap?
Who developed Bootstrap and when?
How do you add Bootstrap to a web page?
What is the difference between bootstrap.bundle.js and bootstrap.js?
Is jQuery required for Bootstrap 5?
What are the main differences between Bootstrap 4 and Bootstrap 5?