Skip to main content

Typography

Typography

Bootstrap includes simple and easily customized typography for headings, body text, lists, and more. For even more control, check out the textual utility classes.

 

Headings

All HTML headings, <h1> through <h6>, are available as well as .h1 through .h6 classes for those cases when you want to get the heading style but can not use the heading tags.

h1. Bootstrap heading

36px

h2. Bootstrap heading

30px

h3. Bootstrap heading

24px

h4. Bootstrap heading

20px
h5. Bootstrap heading
16px
h6. Bootrstrap heading
14px

 

Heading style with heading tags.


<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 style with heading classes.


<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>

 

Lead

Use the .lead class to stand out a paragraph

This is a paragraph which stands out because of the lead class


<p class="lead">This is a paragraph which stands out because of the lead class</p>

 

Inline text elements

Styling for common inline HTML5 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.

    
      <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 deleted text.</s></p>
      <p><ins>This line of text is meant to be treated as deleted text.</ins></p>
      <p><u>This line of text is meant to be treated as deleted text.</u></p>
      <p><small>This line of text is meant to be treated as deleted text.</small></p>
      <p><strong>This line of text is meant to be treated as deleted text.</strong></p>
      <p><em>This line of text is meant to be treated as deleted text.</em></p>
    
  

 

Abbreviations

Stylized implementation of HTML’s element for abbreviations and acronyms to show the expanded version on hover. Abbreviations have a default underline from Normalize.css and gain a help cursor to provide additional context on hover and to users of assistive technologies.

Add .initialism to an abbreviation for a slightly smaller font-size.

attr

HTML

    
      <p><abbr title="attribute">attr</abbr></p>
      <p><abbr title="HyperText Markup Language" class="initialism">HTML</abbr></p>
    
  

 

Blockquotes

For quoting blocks of content from another source within your document. Wrap <blockquote class="blockquote"> around any HTML as the quote.

For quoting blocks of content from another source within your document.

  
    <blockquote><blockquote class="blockquote">
    <p class="mb-0">For quoting blocks of content from another source within your document.</p>
    </blockquote>
  
  

 

Naming a source

Add a <footer class="blockquote-footer"> for identifying the source. Wrap the name of the source work in <cite>.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

Someone famous in Source Title
  
  <blockquote class="blockquote">
    <p class="mb-0">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>
  
  

 

Lists

Unstyled

Remove the default list-style and left margin on list items (immediate children only). This only applies to immediate children list items, meaning you will need to add the class for any nested lists as well.

  • First unstyled list item
  • Second unstyled list item
  • Third unstyled list item
  • Fourth unstyled list item
  • Fifth unstyled list item
    • First styled sublist item
    • Second styled sublist item
    • Third styled sublist item
    • Fourth styled sublist item
  • Sixth unstyled list item
  • Seventh unstyled list item
  • Eighth unstyled list item
  
    <ul class="list-unstyled">
      <li>First unstyled list item</li>
      <li>Second unstyled list item</li>
      <li>Third unstyled list item</li>
      <li>Fourth unstyled list item</li>
      <li>Fifth unstyled list item
        <ul>
          <li>First styled sublist item</li>
          <li>Second styled sublist item</li>
          <li>Third styled sublist item</li>
          <li>Fourth styled sublist item</li>
        </ul>
      </li>
      <li>Sixth unstyled list item</li>
      <li>Seventh unstyled list item</li>
      <li>Eighth unstyled list item</li>
    </ul>
  
  

Inline

Remove a list’s bullets and apply some light margin with a combination of two classes, .list-inline and .list-inline-item.

  • First inline list item
  • Second inline list item
  • Third inline list item
  
    <ul class="list-inline">
      <li class="list-inline-item">First inline list item</li>
      <li class="list-inline-item">Second inline list item</li>
      <li class="list-inline-item">Third inline list item</li>
    </ul>
  
  

Messages

Status message

This is a status message.

Error message

This is an error message.

Warning message

This is a warning message.
Top