Headings, paragraphs, lists and other inline type elements
Headings
HTML headings, [ h1 ]
to [ h6 ]
h1. Heading 1
h2. Heading 2
h3. Heading 3
h4. Heading 4
h5. Heading 5
h6. Heading 6
Body copy
Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.
Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus duis mollis, est non.
<p>...</p>
Lead body copy
Make a paragraph stand out by adding .lead
.
Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.
<p class="lead">...</p>
Lists
Ordered
- Lorem ipsum dolor sit amet
- Consectetur adipiscing elit
- Integer molestie lorem at massa
<ol> <li>...</li> </ol>
Inline
- Lorem ipsum
- Phasellus iaculis
- Nulla volutpat
<ul class="inline"> <li>...</li> </ul>
Description
- Description lists
- A description list is perfect for defining terms.
- Euismod
- Vestibulum id ligula porta felis euismod.
- Donec id elit non mi porta gravida.
- Malesuada porta
- Etiam porta sem malesuada magna mollis.
<dl> <dt>...</dt> <dd>...</dd> </dl>
Emphasis
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
The following snippet of text is rendered as bold text.
<strong>rendered as bold text</strong>
Italics
The following snippet of text is rendered as italicized text.
<em>rendered as italicized text</em>
Emphasis classes
Convey meaning through color with a handful of emphasis utility classes.
Fusce dapibus, tellus ac cursus commodo, tortor mauris nibh.
Etiam porta sem malesuada magna mollis euismod.
Donec ullamcorper nulla non metus auctor fringilla.
Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis.
Duis mollis, est non commodo luctus, nisi erat porttitor ligula.
<p class="muted">Fusce dapibus, tellus ac cursus commodo, tortor mauris nibh.</p> <p class="text-warning">Etiam porta sem malesuada magna mollis euismod.</p> <p class="text-error">Donec ullamcorper nulla non metus auctor fringilla.</p> <p class="text-info">Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis.</p> <p class="text-success">Duis mollis, est non commodo luctus, nisi erat porttitor ligula.</p>
Addresses
<address>
Preserve formatting by ending all lines with <br>
.
P: (123) 456-7890
Full Namename@example.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:#">name@example.com</a> </address>
Abbreviations
Stylized implementation of HTML’s <abbr>
element for abbreviations and acronyms to show the expanded version on hover. Abbreviations with a title
attribute have a light dotted bottom border and a help cursor on hover, providing additional context on hover.
<abbr>
For expanded text on long hover of an abbreviation, include the title
attribute.
An abbreviation of the word attribute is attr.
<abbr title="attribute">attr</abbr>
<abbr class="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" class="initialism">HTML</abbr>
Blockquotes
For quoting blocks of content from another source within your document.
Default blockquote
Wrap <blockquote>
around any HTML as the quote.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
[ blockquote ] Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante. [ /blockquote ]
Naming a source
Add <small>
tag 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 ] Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante. [ small ]Someone famous <cite title="Source Title">Source Title</cite>[ /small ] [ /blockquote ]
Alternate displays
Use .pull-right
for a floated, right-aligned blockquote.
[ blockquote position="pull-right" ] ... [ /blockquote ]