Bootstrap 4 tutorial

Table of contents

About this tutorial

This is a self-study tutorial for Bootstrap version 4. It is basically written in the same order as official Bootstrap 4.2 document. But you can read in any order you like.

Notation

This tutorial uses a special notation for representing HTML structures. For example, consider a button toolbar as below.

<div class="btn-toolbar" role="toolbar" aria-label="Button toolbar">
  <div class="btn-group" role="group" aria-label="Group 1">
    <button class="btn btn-secondary" role="button">1</button>
    <button class="btn btn-secondary" role="button">2</button>
    <button class="btn btn-secondary" role="button">3</button>
  </div>
  <div class="btn-group ml-2" role="group" aria-label="Group 2">
    <button class="btn btn-secondary" role="button">A</button>
    <button class="btn btn-secondary" role="button">B</button>
  </div>
</div>

The tutorial describes it with annotated nested list as follows.

⇐ Click!

Notation rules are as follows.

Source code

The master repositry of the site is maintained by GitHub and hosted by GitHub Pages. HTML pages are written in Pug and built with Webpack on node.js/npm. You can build this site by yourself as following instructions.

See scripts: entries of package.json for more development commands.