Bootstrap Setup
To use Bootstrap, you need to set up your project with the necessary files. Here's how to do it:
Bootstrap CDN
You can include Bootstrap in your project by downloading the files from the official website, or by using a Content Delivery Network (CDN).
To use the CDN, add the following code in the head section of your HTML file:
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
Package managers
Pull in Bootstrap’s source files into nearly any project with some of the most popular package managers.
/* Install Bootstrap in your Node.js powered apps with the npm package */
npm install bootstrap@5.3.2
/* Install Bootstrap in your Node.js powered apps with the yarn package */
yarn add bootstrap@5.3.2