DEV Community

Kunal Agrawal
Kunal Agrawal

Posted on

Bootstrap a website.

Bootstrap the most popular front-end library of responsive components.

just go to bootstrap.
you can install bootstrap from the following ways.

Using CDN (Content delivery network)

  • Copy this in head of your html <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous"> and <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script> this after body tag.

Using NPM

  • Get all CSS, SCSS, JS written by bootstrap through npm package use it as you want.
  • import CSS import "bootstrap/dist/css/bootstrap.min.css"
  • import JS import "bootstrap/dist/js/bootstrap.min.js"

note JavaScript shown here is bundled so if you want to use components like modals and popovers read this doc

now after successfully linking Bootstrap's CSS and JS.

add components
and create a multi million dollar app 😁.
Best of Luck 👍

Top comments (0)