Getting Started with Bootstrap
Here's what you need to include in your web page in order to use Bootstrap 5.
Bootstrap uses its own CSS and JavaScript files, which you need to link to. You can do this with the code below.
Bootstrap 5 doesn't use JQuery (prior releases of Bootstrap rely on JQuery).
Quick Start: Bootstrap 5 Template
You can use the following template as a basis for your Bootstrap 5 web pages. This template contains the necessary !DOCTYPE
preamble, links to CSS and JS files, as well as the viewport meta
tag.
If you don't want the whole template, you can copy/paste the links to each individual file below.
CSS & JavaScript Files
Place the following stylesheet code in the document's head
:
Place the following javascript files at the bottom of your document (just before the end <body>
tag):
That bundles code for both Bootstrap and Popper into one file.
You can alternatively separate Popper and Bootstrap JavaScript into two files, like this:
Design & Development Standards
To get the most out of Bootstrap 5, make sure your pages incorporate the following.
HTML5 !DOCTYPE
Your HTML documents should begin with the HTML5 !DOCTYPE
declaration. Like this:
Add the Viewport <meta>
Tag
To ensure proper rendering and touch zooming on mobile devices, add the viewport meta
tag to your head
, like this: