Getting Started with Bootstrap

Here's what you need to include in your web page in order to use Bootstrap 4.

Bootstrap uses its own CSS and JavaScript files, which you need to link to. You should also ensure that your page includes a few standard elements as explained below.

CSS & JavaScript Files

You can link directly to the files via the Bootstrap CDN (Content Delivery Network) at MaxCDN. All Bootstrap plugins use JQuery so you'll need to ensure you're using that too.

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):

Design & Development Standards

To get the most out of Bootstrap 4, 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, like this:

You can (optionally), disable zooming capabilities on mobile devices by adding user-scalable=no to the list of content values. However, this is not recommended.

Quick Start: Bootstrap 4 Template

You can use the following template as a basis for your Bootstrap 4 web pages. This template contains the necessary !DOCTYPE preamble, links to CSS and JS files, as well as the viewport meta tag.

The above template includes a container. More on containers next.