Bootstrap: Headings

All HTML headings, <h1> through <h6>, are available. .h1 through .h6 classes are also available, for when you want to match the font styling of a heading but still want your text to be displayed inline.

h1. Bootstrap heading Secondary text


h2. Bootstrap heading Secondary text


h3. Bootstrap heading Secondary text


h4. Bootstrap heading Secondary text


h5. Bootstrap heading Secondary text

h6. Bootstrap heading Secondary text
<h1>h1. Bootstrap heading <small>Secondary text</small></h1>
<h2>h2. Bootstrap heading <small>Secondary text</small></h2>
<h3>h3. Bootstrap heading <small>Secondary text</small></h3>
<h4>h4. Bootstrap heading <small>Secondary text</small></h4>
<h5>h5. Bootstrap heading <small>Secondary text</small></h5>
<h6>h6. Bootstrap heading <small>Secondary text</small></h6>

Bootstrap: Body Copy

A sample of default body copy. Note the handy lorem ipsum generator :)

<p>
  <LoremIpsum query='2s' />
</p>
<p>
  <LoremIpsum query='3s' />
</p>
<p>
  <LoremIpsum query='2s' />
</p>

Bootstrap: Lead Body Copy

Make a paragraph stand out by using the Lead component.

<Lead>
  <LoremIpsum query='2s' />
</Lead>

Bootstrap: Inline text elements

Marked text

For highlighting a run of text due to its relevance in another context, use the <mark> tag.

You can use the mark tag to highlight text.
You can use the mark tag to <mark>highlight</mark> text.

Deleted text

For indicating blocks of text that have been deleted use the <del> tag.

This line of text is meant to be treated as deleted text.
<del>This line of text is meant to be treated as deleted text.</del>

Strikethrough text

For indicating blocks of text that are no longer relevant use the <s> tag.

This line of text is meant to be treated as no longer accurate.
<s>This line of text is meant to be treated as no longer accurate.</s>

Inserted text

For indicating additions to the document use the <ins> tag.

This line of text is meant to be treated as an addition to the document.
<ins>This line of text is meant to be treated as an addition to the document.</ins>

Underlined text

To underline text use the <u> tag.

This line of text will render as underlined
<u>This line of text will render as underlined</u>

Small text

For de-emphasizing inline or blocks of text, use the <small> tag to set text at 85% the size of the parent. Heading elements receive their own font-size for nested <small> elements.

You may alternatively use an inline element with .small in place of any <small>.

This line of text is meant to be treated as fine print.
<small>This line of text is meant to be treated as fine print.</small>

Bold text

For emphasizing a snippet of text with a heavier font-weight.

The following snippet of text is rendered as bold text.
The following snippet of text is <strong>rendered as bold text</strong>.

Italics

For emphasizing a snippet of text with italics.

The following snippet of text is rendered as italicized text.
The following snippet of text is <em>rendered as italicized text</em>.

Bootstrap: Alignment classes

Easily realign text to components with text alignment classes. NOTE: React uses className instead of class.

Left aligned text.

Center aligned text.

Right aligned text.

Justified text.

No wrap text.

<p className='text-left'>Left aligned text.</p>
<p className='text-center'>Center aligned text.</p>
<p className='text-right'>Right aligned text.</p>
<p className='text-justify'>Justified text.</p>
<p className='text-nowrap'>No wrap text.</p>

Bootstrap: Transformation classes

Transform text in components with text capitalization classes. NOTE: React uses className instead of class.

Lowercased text.

Uppercased text.

capitalized text.

<p className='text-lowercase'>Lowercased text.</p>
<p className='text-uppercase'>Uppercased text.</p>
<p className='text-capitalize'>capitalized text.</p>

Bootstrap: Abbreviations

Stylized implementation of HTML's <abbr> element for abbreviations and acronyms to show the expanded version on hover.

An abbreviation of the word attribute is attr.
<abbr title='attribute'>attr</abbr>

Initialism

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

HTML is the best thing since sliced bread.
<abbr title='HyperText Markup Language' className='initialism'>HTML</abbr>

Bootstrap: Addresses

Present contact information for the nearest ancestor or the entire body of work. Preserve formatting by ending all lines with <br/>.

Twitter, Inc.
795 Folsom Ave, Suite 600
San Francisco, CA 94107
P: (123) 456-7890
Full Name
support@sketchpixy.com
<address>
  <strong>Twitter, Inc.</strong><br/>
  795 Folsom Ave, Suite 600<br/>
  San Francisco, CA 94107<br/>
  <abbr title='Phone'>P:</abbr> (123) 456-7890
</address>
<address>
  <strong>Full Name</strong><br/>
  <a href='mailto:support@sketchpixy.com'>support@sketchpixy.com</a>
</address>

Bootstrap: Blockquotes

Default blockquote

Wrap <blockquote> around any HTML as the quote. For straight quotes, we recommend a <br/>.

<blockquote>
  <p><LoremIpsum query='1s' /></p> 
</blockquote>

Naming a source

Add a <footer> for identifying the source. Wrap the name of the source work in <cite>.

Someone famous in Source Title
<blockquote>
  <p><LoremIpsum query='1s' /></p> 
  <footer>Someone famous in <cite title='Source Title'>Source Title</cite></footer>
</blockquote>

Alternate displays

Add .blockquote-reverse for a blockquote with right-aligned content. NOTE: React uses className instead of the class property.

Someone famous in Source Title
<blockquote className='blockquote-reverse'>
  <p><LoremIpsum query='1s' /></p> 
  <footer>Someone famous in <cite title='Source Title'>Source Title</cite></footer>
</blockquote>

Bootstrap: Lists

Unordered

A list of items in which the order does not explicitly matter.

<ul>
  <li><LoremIpsum query='1s' /></li>
  <li><LoremIpsum query='1s' /></li>
  <li><LoremIpsum query='1s' /></li>
  <li><LoremIpsum query='1s' /></li>
  <li>
    <LoremIpsum query='1s' />
    <ul>
      <li><LoremIpsum query='1s' /></li>
      <li><LoremIpsum query='1s' /></li>
      <li><LoremIpsum query='1s' /></li>
      <li><LoremIpsum query='1s' /></li>
    </ul>
  </li>
  <li><LoremIpsum query='1s' /></li>
  <li><LoremIpsum query='1s' /></li>
  <li><LoremIpsum query='1s' /></li>
</ul>

Ordered

A list of items in which the order does explicitly matter.

<ol>
  <li><LoremIpsum query='1s' /></li>
  <li><LoremIpsum query='1s' /></li>
  <li><LoremIpsum query='1s' /></li>
  <li><LoremIpsum query='1s' /></li>
  <li><LoremIpsum query='1s' /></li>
  <li><LoremIpsum query='1s' /></li>
  <li><LoremIpsum query='1s' /></li>
  <li><LoremIpsum query='1s' /></li>
</ol>

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.

<ul className='list-unstyled'>
  <li><LoremIpsum query='1s' /></li>
  <li><LoremIpsum query='1s' /></li>
  <li><LoremIpsum query='1s' /></li>
  <li><LoremIpsum query='1s' /></li>
  <li>
    <LoremIpsum query='1s' />
    <ul>
      <li><LoremIpsum query='1s' /></li>
      <li><LoremIpsum query='1s' /></li>
      <li><LoremIpsum query='1s' /></li>
      <li><LoremIpsum query='1s' /></li>
    </ul>
  </li>
  <li><LoremIpsum query='1s' /></li>
  <li><LoremIpsum query='1s' /></li>
  <li><LoremIpsum query='1s' /></li>
</ul>

Inline

Place all list items on a single line with display: inline-block; and some light padding.

<ul className='list-inline'>
  <li><LoremIpsum query='2w' /></li>
  <li><LoremIpsum query='2w' /></li>
  <li><LoremIpsum query='2w' /></li>
</ul>

Description

A list of terms with their associated descriptions.

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.
<dl>
  <dt>Description lists</dt>
  <dd>A description list is perfect for defining terms.</dd>
  <dt>Euismod</dt>
  <dd>Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.</dd>
  <dd>Donec id elit non mi porta gravida at eget metus.</dd>
  <dt>Malesuada porta</dt>
  <dd>Etiam porta sem malesuada magna mollis euismod.</dd>
</dl>

Horizontal description

Make terms and descriptions in <dl> line up side-by-side. Starts off stacked like default <dl>s, but when the navbar expands, so do these.

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.
Felis euismod semper eget lacinia
Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.
<dl className='dl-horizontal'>
  <dt>Description lists</dt>
  <dd>A description list is perfect for defining terms.</dd>
  <dt>Euismod</dt>
  <dd>Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.</dd>
  <dd>Donec id elit non mi porta gravida at eget metus.</dd>
  <dt>Malesuada porta</dt>
  <dd>Etiam porta sem malesuada magna mollis euismod.</dd>
  <dt>Felis euismod semper eget lacinia</dt>
  <dd>Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</dd>
</dl>