Bootstrap 4 tutorial

Components (1): Alerts / Badges / Breadcrumb

Alerts

Examples

div.alert.alert-primary

div.alert.alert-secondary

div.alert.alert-success

div.alert.alert-danger

div.alert.alert-warning

div.alert.alert-info

div.alert.alert-light

div.alert.alert-dark

Additional content

Example using various-size headings, paragraphs, and a horizontal rule.

Dismissing

Badges

Examples

Used in headings

h1 Heading New

h2 Heading New

h3 Heading New

h4 Heading New

h5 Heading New
h6 Heading New
Used inside a button

Contextual variations

span.badge.badge-(primary|secondary|success|danger|warning|info|light|dark)

Primary Secondary Success Danger Warning Info Light Dark 

Pill badges

span.badge.badge-pill.badge-(primary|secondary|success|danger|warning|info|light|dark)

Primary Secondary Success Danger Warning Info Light Dark 

a.badge.badge-(primary|secondary|success|danger|warning|info|light|dark)

Primary Secondary Success Danger Warning Info Light Dark 

Breadcrumb indicates current page's location within a navigational hierarchy.

If you want to change the separator symbol ( "/" as default), you can append a short CSS as below at the end of head block (used in this page).

.breadcrumb-item + .breadcrumb-item::before { content: "\00bb" }

(Advanced) you can also customize bootstrap.css from Sass source files. See Customizing from Sass source code for detail.

Finally, below is the real breadcrumb of this page.