Introduction

Get started with Bootstrap, the world's most popular framework for building responsive, mobile-first sites, with the Bootstrap CDN and a template starter page.

Quick start

Looking to quickly add Bootstrap to your project? Use the Bootstrap CDN, provided for free by the folks at MaxCDN. Using a package manager or need to download the source files? Head to the downloads page.

CSS

Copy-paste the stylesheet <link> into your <head> before all other stylesheets to load our CSS.

<link rel="stylesheet" href="" integrity="" crossorigin="anonymous">
<link rel="stylesheet" href="/assets/css/now-ui-kit.css">

JS

Many of our components require the use of JavaScript to function. Specifically, they require jQuery, Popper.js, and our own JavaScript plugins. Place the following <script>s near the end of your pages, right before the closing </body> tag, to enable them. jQuery must come first, then Popper.js, and then our JavaScript plugins.

We use jQuery’s slim build, but the full version is also supported.

<script src="" integrity="" crossorigin="anonymous"></script>
<script src="" integrity="" crossorigin="anonymous"></script>
<script src="" integrity="" crossorigin="anonymous"></script>
<script src="/assets/js/now-ui-kit.js"></script>


<!-- Plugins -->

<script src="/assets/js/plugins/moment.min.js"></script>
<script src="/assets/js/plugins/bootstrap-switch.js"></script>
<script src="/assets/js/plugins/bootstrap-tagsinput.js"></script>
<script src="/assets/js/plugins/bootstrap-selectpicker.js"></script>
<script src="/assets/js/plugins/jasny-bootstrap.js"></script>
<script src="/assets/js/plugins/nouislider.min.js"></script>
<script src="/assets/js/plugins/bootstrap-datetimepicker.min.js"></script>

Curious which components explicitly require jQuery, our JS, and Popper.js? Click the show components link below. If you’re at all unsure about the general page structure, keep reading for an example page template.

Show components requiring JavaScript
  • Alerts for dismissing
  • Buttons for toggling states and checkbox/radio functionality
  • Carousel for all slide behaviors, controls, and indicators
  • Collapse for toggling visibility of content
  • Dropdowns for displaying and positioning (also requires Popper.js)
  • Modals for displaying, positioning, and scroll behavior
  • Navbar for extending our Collapse plugin to implement responsive behavior
  • Tooltips and popovers for displaying and positioning (also requires Popper.js)
  • Scrollspy for scroll behavior and navigation updates

Starter template

Be sure to have your pages set up with the latest design and development standards. That means using an HTML5 doctype and including a viewport meta tag for proper responsive behaviors. Put it all together and your pages should look like this:

<!doctype html>
<html lang="en">
  <head>
    <title>Hello, world!</title>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="" integrity="" crossorigin="anonymous">

    <!-- NOW UI Kit CSS -->
    <link rel="stylesheet" href="/assets/css/now-ui-kit.css">

  </head>
  <body>
    <h1>Hello, world!</h1>

    <!-- Optional JavaScript -->
    <!-- jQuery first, then Popper.js, then Bootstrap JS -->
    <script src="" integrity="" crossorigin="anonymous"></script>
    <script src="" integrity="" crossorigin="anonymous"></script>
    <script src="" integrity="" crossorigin="anonymous"></script>

    <!-- NOW UI Kit JavaScript -->
    <script src="/assets/js/now-ui-kit.js"></script>

    <!-- Plugins -->
    <script src="/assets/js/plugins/moment.min.js"></script>
    <script src="/assets/js/plugins/bootstrap-switch.js"></script>
    <script src="/assets/js/plugins/bootstrap-tagsinput.js"></script>
    <script src="/assets/js/plugins/bootstrap-selectpicker.js"></script>
    <script src="/assets/js/plugins/jasny-bootstrap.js"></script>
    <script src="/assets/js/plugins/nouislider.min.js"></script>
    <script src="/assets/js/plugins/bootstrap-datetimepicker.min.js"></script>

  </body>
</html>