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.
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.
div.btn-toolbar
Attributes
role="toolbar"
aria-label="Button toolbar"
div.btn-group
Attributes
role="group"
aria-label="Group 1"
button.btn
(×3) Attributes
.btn-secondary
role="button"
1
, 2
, 3
div.btn-group
Attributes
.ml-2
role="group"
aria-label="Group 2"
button.btn
(×2) Attributes
.btn-secondary
role="button"
A
, B
Notation rules are as follows.
disc
), element name with code
(red monospace text)div.modal.fade
circle
), CSS dot notation: .{class1}.{class2}
circle
), HTML attribute notation: {attribute}="{value}"
none
), e.g. Text content
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.
./site/*
)http://localhost:6022/
)See scripts:
entries of package.json
for more development commands.