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
h2. Bootstrap heading
h3. Bootstrap heading
h4. Bootstrap heading
h5. Bootstrap heading
h6. Bootstrap heading
Custom Headings
Create lighter, secondary text in any heading with a generic <small>
tag or the .small
class.
Bootstrap heading Secondary text
Bootstrap heading Secondary text
Bootstrap heading Secondary text
Bootstrap heading Secondary text
Bootstrap heading Secondary text
Bootstrap heading Secondary text
Body Copy
Bootstrap's global default font-size
is 14px, with a line-height
of 1.428. This is applied to the <body>
and all paragraphs. In addition, <p>
(paragraphs) receive a bottom margin of half their computed line-height (10px by default).
Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula.
Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec ullamcorper nulla non metus auctor fringilla. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Donec ullamcorper nulla non metus auctor fringilla.
Lead Body Copy
Make a paragraph stand out by adding .lead
.
Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.
Inline Text Elements
# | Text Type | Example |
---|---|---|
1 |
MARKED TEXTUse the |
You can use the mark tag to highlight text. |
2 |
DELETED TEXTUse the |
|
3 |
STRIKETHROUGH TEXTUse the |
|
4 |
INSERTED TEXTUse the |
This line of text is meant to be treated as an addition to the document. |
5 |
UNDERLINED TEXTUse the |
This line of text will render as underlined |
6 |
SMALL TEXTUse the |
This line of text is meant to be treated as fine print. |
7 |
BOLDUse the |
The following snippet of text is rendered as bold text. |
8 |
ITALICSUse the |
The following snippet of text is rendered as italicized text. |
Alignment Classes
Add class .text-left
, .text-center
, .text-right
, .text-justify
, .text-nowrap
to make it.
Left aligned text.
Center aligned text.
Right aligned text.
Justified text.
No wrap text.
Transformation Classes
Add class .text-lowercase
, .text-uppercase
, .text-capitalize
to make it.
Lowercased text.
Uppercased text.
Capitalized text.
ABBREVIATIONS
Use the <abbr>
tag.
BASIC ABBREVIATION
An abbreviation of the word attribute is attr.
INITIALISM
Add .initialism
to an abbreviation for a slightly smaller font-size.
HTML is the best thing since sliced bread.
Address
Use the <address>
tag.
795 Folsom Ave, Suite 600
San Francisco, CA 94107
P: (123) 456-7890 Full Name
[email protected]
Blockquotes
Wrap <blockquote>
around any HTML as the quote. For straight quotes, we recommend a <p>
.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
NAMING A SOURCE
Add a <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.
ALTERNATE DISPLAYS
Add .blockquote-reverse
for a blockquote with right-aligned content.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
Lists
UNORDERED
- Lorem ipsum dolor sit amet
- Consectetur adipiscing elit
- Integer molestie lorem at massa
- Facilisis in pretium nisl aliquet
- Nulla volutpat aliquam velit
- Phasellus iaculis neque
- Purus sodales ultricies
- Vestibulum laoreet porttitor sem
- Ac tristique libero volutpat at
- Faucibus porta lacus fringilla vel
- Aenean sit amet erat nunc
- Eget porttitor lorem
ORDERED
- Lorem ipsum dolor sit amet
- Consectetur adipiscing elit
- Integer molestie lorem at massa
- Facilisis in pretium nisl aliquet
- Nulla volutpat aliquam velit
- Faucibus porta lacus fringilla vel
- Aenean sit amet erat nunc
- Eget porttitor lorem
INLINE
- Lorem ipsum
- Phasellus iaculis
- Nulla volutpat
UNSTYLED
- Lorem ipsum dolor sit amet
- Consectetur adipiscing elit
- Integer molestie lorem at massa
- Facilisis in pretium nisl aliquet
- Nulla volutpat aliquam velit
- Phasellus iaculis neque
- Purus sodales ultricies
- Vestibulum laoreet porttitor sem
- Ac tristique libero volutpat at
- Faucibus porta lacus fringilla vel
- Aenean sit amet erat nunc
- Eget porttitor lorem
DESCRIPTIONS
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.
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.
Contextual
TEXT COLORS
Lorem ipsum dolor sit amet, consectetur adipisicing elit.
Lorem ipsum dolor sit amet, consectetur adipisicing elit.
Lorem ipsum dolor sit amet, consectetur adipisicing elit.
Lorem ipsum dolor sit amet, consectetur adipisicing elit.
Lorem ipsum dolor sit amet, consectetur adipisicing elit.
Lorem ipsum dolor sit amet, consectetur adipisicing elit.
Lorem ipsum dolor sit amet, consectetur adipisicing elit.
BACKGROUNDS
Primary
Success
Info
Purple
Warning
Danger
Code
INLINE
Wrap inline snippets of code with <code>
.
<section>
should be wrapped as inline.
SAMPLE OUTPUT
For indicating blocks sample output from a program use the <samp>
tag.
USER INPUT
Use the <kbd>
to indicate input that is typically entered via keyboard.
To edit settings, press ctrl + ,
VARIABLES
For indicating variables use the <var>
tag.
BASIC BLOCK
Use <pre>
for multiple lines of code. Be sure to escape any angle brackets in the code for proper rendering.
<p>Sample text here...</p>