Typography

XS

Portrait Phones
<576px

SM

Landscape Phones
≥576px to <768px

MD

Tablets
≥768px to <992px

LG

Laptops
≥992px to <1200px

XL

Desktops
≥1200px

Headings

h1-h6

h1. Bootstrap heading

h2. Bootstrap heading

h3. Bootstrap heading

h4. Bootstrap heading

h5. Bootstrap heading
h6. Bootstrap heading

h1. Bootstrap heading

h2. Bootstrap heading

h3. Bootstrap heading

h4. Bootstrap heading

h5. Bootstrap heading

h6. Bootstrap heading

Customizing headings

h1-h6

Fancy display heading With faded secondary text

Display headings

.display-* = { 1-6}

Display 1

Display 2

Display 3

Display 4

Display 5

Display 6

lead

.lead

This is a lead paragraph. It stands out from regular paragraphs.

Inline Text Element

mark, s, ins, del, u, small, strong, em

You can use the mark tag to highlight text.

This line of text is meant to be treated as deleted text.

This line of text is meant to be treated as no longer accurate.

This line of text is meant to be treated as an addition to the document.

This line of text will render as underlined.

This line of text is meant to be treated as fine print.

This line rendered as bold text.

This line rendered as italicized text.

Heading
<h1>h1. Bootstrap heading</h1>
<h2>h2. Bootstrap heading</h2>
<h3>h3. Bootstrap heading</h3>
<h4>h4. Bootstrap heading</h4>
<h5>h5. Bootstrap heading</h5>
<h6>h6. Bootstrap heading</h6>
Heading Using class
<p class="h1">
h1. Bootstrap heading
</p>
<p class="h2">
h2. Bootstrap heading
</p>
<p class="h3">
h3. Bootstrap heading
</p>
<p class="h4">
h4. Bootstrap heading
</p>
<p class="h5">
h5. Bootstrap heading
</p>
<p class="h6">
h6. Bootstrap heading
</p>
Customizing headings
<h3>
Fancy display heading
<small class="text-muted">
With faded secondary text
</small>
</h3>
Display headings
<h1 class="display-1">
Display 1
</h1>
<h1 class="display-2">
Display 2
</h1>
<h1 class="display-3">
Display 3
</h1>
<h1 class="display-4">
Display 4
</h1>
<h1 class="display-5">
Display 5
</h1>
<h1 class="display-6">
Display 6
</h1>

Display Font sizes:
$display-font-sizes: (
1: 5rem,
2: 4.5rem,
3: 4rem,
4: 3.5rem,
5: 3rem,
6: 2.5rem
);
Lead
<p class="lead">
This is a lead paragraph. It stands out from regular paragraphs.
</p>

Inline text element
<p>
You can use the mark tag to <mark>highlight</mark> text.
</p>
<p>
<del>This line of text is meant to be treated as deleted text.</del>
</p>
<p>
<s>This line of text is meant to be treated as no longer accurate.</s>
</p>
<p>
<ins>This line of text is meant to be treated as an addition to the document.</ins>
</p>
<p>
<u>This line of text will render as underlined.</u>
</p>
<p>
<small>This line of text is meant to be treated as fine print.</small>
</p>
<p>
<strong>This line rendered as bold text.</strong>
</p>
<p>
<em>This line rendered as italicized text.</em>
</p>

If you want to style your text, you should use the following classes instead:
  • .mark will apply the same styles as <mark>.
  • .small will apply the same styles as <small>.
  • .text-decoration-underline will apply the same styles as <u>.
  • .text-decoration-line-through will apply the same styles as <s>.