Typography

Headings, body text, lists, and more.

Bootstrap docs

Headings

h1. Around heading


h2. Around heading


h3. Around heading


h4. Around heading


h5. Around heading

h6. Around heading
<!-- Headings -->
<h1>h1. Around heading</h1>
<h2>h2. Around heading</h2>
<h3>h3. Around heading</h3>
<h4>h4. Around heading</h4>
<h5>h5. Around heading</h5>
<h6>h6. Around heading</h6>
// Headings
h1 h1. Around heading
h2 h2. Around heading
h3 h3. Around heading
h4 h4. Around heading
h5 h5. Around heading
h6 h6. Around heading

Display headings

Display 1


Display 2


Display 3


Display 4

<!-- 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>
// Display headings
h1.display-1 Display 1
h1.display-2 Display 2
h1.display-3 Display 3
h1.display-4 Display 4

Body text sizes

Lead. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor

Extra large. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor

Large. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor

Normal. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor

Medium. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor

Small. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor

Medium small. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor

Extra small. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor

<!-- Body text sizes -->
<p class="lead">Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor</p>
<p class="font-size-xl">Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor</p>
<p class="font-size-lg">Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor</p>
<p>Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor</p>
<p class="font-size-md">Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor</p>
<p class="font-size-sm">Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor</p>
<p class="font-size-ms">Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor</p>
<p class="font-size-xs">Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor</p>
// Body text sizes
p.lead Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor
p.font-size-xl Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor
p.font-size-lg Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor
p Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor
p.font-size-md Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor
p.font-size-sm Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor
p.font-size-ms Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor
p.font-size-xs Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor

Inline text elements

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.

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

Abbreviations

attr

HTML

<!-- Abbreviations -->
<p><abbr title="attribute">attr</abbr></p>
<p><abbr class="initialism" title="HyperText Markup Language">HTML</abbr></p>
// Abbreviations
p
  abbr(title="attribute") attr
p
  abbr.initialism(title="HyperText Markup Language") HTML

Blockquote

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Someone famous in Source Title

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Someone famous in Source Title

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Someone famous in Source Title
<!-- Blockquote: left aligned -->
<blockquote class="blockquote">
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
  <footer class="blockquote-footer">
    Someone famous in <cite title="Source Title">Source Title</cite>
  </footer>
</blockquote>

<!-- Blockquote: center aligned -->
<blockquote class="blockquote text-center">
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
  <footer class="blockquote-footer">
    Someone famous in <cite title="Source Title">Source Title</cite>
  </footer>
</blockquote>

<!-- Blockquote: right aligned -->
<blockquote class="blockquote text-right">
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
  <footer class="blockquote-footer">
    Someone famous in <cite title="Source Title">Source Title</cite>
  </footer>
</blockquote>
// Blockquote: left aligned
blockquote.blockquote
  p Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
  footer.blockquote-footer Someone famous in <cite title="Source Title">Source Title</cite>

// Blockquote: center aligned
blockquote.blockquote.text-center
  p Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
  footer.blockquote-footer Someone famous in <cite title="Source Title">Source Title</cite>

// Blockquote: right aligned
blockquote.blockquote.text-right
  p Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
  footer.blockquote-footer Someone famous in <cite title="Source Title">Source Title</cite>

Lists: Unordered and ordered

  • Lorem ipsum dolor sit amet
  • Consectetur adipiscing elit
  • Integer molestie lorem at massa
  • Facilisis in pretium nisl aliquet
  • Nulla volutpat aliquam velit
  1. Lorem ipsum dolor sit amet
  2. Consectetur adipiscing elit
  3. Integer molestie lorem at massa
  4. Facilisis in pretium nisl aliquet
  5. Nulla volutpat aliquam velit
<!-- Unordered list -->
<ul>
  <li>Lorem ipsum dolor sit amet</li>
  <li>Consectetur adipiscing elit</li>
  <li>Integer molestie lorem at massa</li>
  <li>Facilisis in pretium nisl aliquet</li>
  <li>Nulla volutpat aliquam velit</li>
</ul>

<!-- Ordered list -->
<ol>
  <li>Lorem ipsum dolor sit amet</li>
  <li>Consectetur adipiscing elit</li>
  <li>Integer molestie lorem at massa</li>
  <li>Facilisis in pretium nisl aliquet</li>
  <li>Nulla volutpat aliquam velit</li>
</ul>
// Unordered list
ul
  li Lorem ipsum dolor sit amet
  li Consectetur adipiscing elit
  li Integer molestie lorem at massa
  li Facilisis in pretium nisl aliquet
  li Nulla volutpat aliquam velit

// Ordered list
ol
  li Lorem ipsum dolor sit amet
  li Consectetur adipiscing elit
  li Integer molestie lorem at massa
  li Facilisis in pretium nisl aliquet
  li Nulla volutpat aliquam velit

Lists: Unstyled

  • Lorem ipsum dolor sit amet
  • Consectetur adipiscing elit
  • Integer molestie lorem at massa
    • Phasellus iaculis neque
    • Purus sodales ultricies
    • Vestibulum laoreet porttitor sem
  • Faucibus porta lacus fringilla vel
  • Aenean sit amet erat nunc
<!-- Unstyled list -->
<ul class="list-unstyled">
  <li>Lorem ipsum dolor sit amet</li>
  <li>Consectetur adipiscing elit</li>
  <li>Integer molestie lorem at massa</li>
    <ul>
      <li>Phasellus iaculis neque</li>
      <li>Purus sodales ultricies</li>
      <li>Vestibulum laoreet porttitor sem</li>
    </ul>
  </li>
  <li>Faucibus porta lacus fringilla vel</li>
  <li>Aenean sit amet erat nunc</li>
</ul>
// Unstyled list
ul.list-unstyled
  li Lorem ipsum dolor sit amet
  li Consectetur adipiscing elit
  li Integer molestie lorem at massa
    ul
      li Phasellus iaculis neque
      li Purus sodales ultricies
      li Vestibulum laoreet porttitor sem
  li Faucibus porta lacus fringilla vel
  li Aenean sit amet erat nunc

Lists: Inline

  • Lorem ipsum dolor
  • Consectetur adipiscing
  • Integer molestie
<!-- Inline list -->
<ul class="list-inline">
  <li class="list-inline-item">Lorem ipsum dolor</li>
  <li class="list-inline-item">Consectetur adipiscing</li>
  <li class="list-inline-item">Integer molestie</li>
</ul>
// Inline list
ul.list-inline
  li.list-inline-item Lorem ipsum dolor
  li.list-inline-item Consectetur adipiscing
  li.list-inline-item Integer molestie

Description list basic example

Description lists
A description list is perfect for defining terms.
Malesuada porta
Etiam porta sem malesuada magna mollis euismod.
Euismod
Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.
<!-- Description list basic example -->
<dl>
  <dt>Description lists</dt>
  <dd>A description list is perfect for defining terms.</dd>
  <dt>Malesuada porta</dt>
  <dd>Etiam porta sem malesuada magna mollis euismod.</dd>
  <dt>Euismod</dt>
  <dd>Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.</dd>
</dl>
// Description list basic example
dl
  dt Description lists
  dd A description list is perfect for defining terms.
  dt Malesuada porta
  dd Etiam porta sem malesuada magna mollis euismod.
  dt Euismod
  dd Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.

Description list alignment

Description lists
A description list is perfect for defining terms.
Euismod

Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.

Donec id elit non mi porta gravida at eget metus.

Malesuada porta
Etiam porta sem malesuada magna mollis euismod.
Long truncated term is truncated
Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.
Nesting
Nested definition list
Aenean posuere, tortor sed cursus feugiat nunc augue.
<!-- Description list alignment -->
<dl class="row">
  <dt class="col-sm-3">Description lists&nbsp;</dt>
  <dd class="col-sm-9">A description list is perfect for defining terms.</dd>
  <dt class="col-sm-3">Euismod</dt>
  <dd class="col-sm-9">
    <p class="mb-2">Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.</p>
    <p class="mb-0">Donec id elit non mi porta gravida at eget metus.</p>
  </dd>
  <dt class="col-sm-3">Malesuada porta</dt>
  <dd class="col-sm-9">Etiam porta sem malesuada magna mollis euismod.</dd>
  <dt class="col-sm-3 text-truncate">Long truncated term is truncated</dt>
  <dd class="col-sm-9">Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</dd>
  <dt class="col-sm-3">Nesting</dt>
  <dd class="col-sm-9">
    <dl class="row">
      <dt class="col-sm-4">Nested definition list</dt>
      <dd class="col-sm-8">Aenean posuere, tortor sed cursus feugiat nunc augue.</dd>
    </dl>
  </dd>
</dl>
// Description list alignment
dl.row.mb-0
  dt.col-sm-3 Description lists&nbsp;
  dd.col-sm-9 A description list is perfect for defining terms.
  dt.col-sm-3 Euismod
  dd.col-sm-9
    p.mb-2 Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.
    p.mb-0 Donec id elit non mi porta gravida at eget metus.
  dt.col-sm-3 Malesuada porta
  dd.col-sm-9 Etiam porta sem malesuada magna mollis euismod.
  dt.col-sm-3.text-truncate Long truncated term is truncated
  dd.col-sm-9 Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.
  dt.col-sm-3 Nesting
  dd.col-sm-9
    dl.row
      dt.col-sm-4 Nested definition list
      dd.col-sm-8 Aenean posuere, tortor sed cursus feugiat nunc augue.
Top