Typography
Documentation and examples for Bootstrap typography, including global settings, headings, body text, lists, and more.
Headings
All HTML headings, <h1>
through <h6>
, are available.
Heading | Example |
---|---|
<h1></h1>
|
h1. Bootstrap heading |
<h2></h2>
|
h2. Bootstrap heading |
<h3></h3>
|
h3. Bootstrap heading |
<h4></h4>
|
h4. Bootstrap heading |
<h5></h5>
|
h5. Bootstrap heading |
<h6></h6>
|
h6. Bootstrap heading |
Display headings
Traditional heading elements are designed to work best in the meat of your page content. When you need a heading to stand out, consider using a display heading—a larger, slightly more opinionated heading style.
Display 1
Display 2
Display 3
Display 4
Paragraph
Multiple options for styling your paragraphs text.
Default
Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.
Lead
Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.
Small
Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.
Sizing
Easily change the size of your text with sizing classes.
Heading | Example |
---|---|
.fs-1
|
Text size variation. |
.fs-2
|
Text size variation. |
.fs-3
|
Text size variation. |
.fs-4
|
Text size variation. |
.fs-5
|
Text size variation. |
.fs-6
|
Text size variation. |
Inline text elements
Styling for common inline HTML5 elements.
Element | Example |
---|---|
<mark></mark> or .mark
|
You can use the mark tag to highlight text. |
<del></del>
|
|
<s></s> or .strike-through
|
|
<ins></ins>
|
This line of text is meant to be treated as an addition to the document. |
<u></u> or .underline
|
This line of text will render as underlined. |
<small></small> or .small
|
This line of text is meant to be treated as fine print. |
<em></em> or .italic
|
This line rendered as italicized text. |
<span></span> or .fw-bolder
|
This line rendered as extra-bold text. |
<span></span> or .fw-bold
|
This line rendered as bold text. |
<span></span> or .fw-normal
|
This line rendered as regular text. |
<span></span> or .fw-light
|
This line rendered as light text. |