top of page

Bootstrap's Default Settings

Bootstrap's global default font-size is 14px, with a line-height of 1.428.

This is applied to the <body> element and all paragraphs (<p>).

In addition, all <p> elements have a bottom margin that equals half their computed line-height (10px by default).

<h1> - <h6>

By default, Bootstrap will style the HTML headings (<h1> to <h6>) in the following way:

EXAMPLE:


h1 Bootstrap heading (36px)
h2 Bootstrap heading (30px)
h3 Bootstrap heading (24px)
h4 Bootstrap heading (18px)
h5 Bootstrap heading (14px)
h6 Bootstrap heading (12px)

<small>

In Bootstrap the HTML <small> element is used to create a lighter, secondary text in any heading:

EXAMPLE:


h1 heading secondary text
h2 heading secondary text
h3 heading secondary text
h4 heading
secondary text
h5 heading secondary text
h6 heading secondary text

<mark>

Bootstrap will style the HTML <mark> element in the following way:

EXAMPLE:

Use the mark element to highlight text.

<blockquote>

Bootstrap will style the HTML <blockquote> element in the following way:

EXAMPLE:

For 50 years, WWF has been protecting the future of nature. The world's leading conservation organization, WWF works in 100 countries and is supported by 1.2 million members in the United States and close to 5 million globally.

- From WWF's website

To show the quote on the right, use the .blockquote-reverse class:

EXAMPLE:

For 50 years, WWF has been protecting the future of nature. The world's leading conservation organization, WWF works in 100 countries and is supported by 1.2 million members in the United States and close to 5 million globally.

From WWF's website -

<dl>

Bootstrap will style the HTML <dl> element in the following way:

EXAMPLE:


Coffee
- black hot drink
Milk
- white cold drink

<code>

Bootstrap will style the HTML <code> element in the following way:

EXAMPLE:


The following HTML elements: span, section, and div defines a section in a document.

<kbd>

Bootstrap will style the HTML <kbd> element in the following way:

EXAMPLE:


Use ctrl + p to open the Print dialog box.

<pre>

Bootstrap will style the HTML <pre> element in the following way:

EXAMPLE:


Text in a pre element
is displayed in a fixed-width
font, and it preserves
both      spaces and
line breaks.

Contextual Colors and Backgrounds

Bootstrap also has some contextual classes that can be used to provide "meaning through colors".

The classes for text colors are:.text-muted, .text-primary, .text-success, .text-info, .text-warning, and .text-danger:

EXAMPLE:


This text is muted.

This text is important.

This text indicates success.

This text represents some information.

This text represents a warning.

This text represents danger.

The classes for background colors are:.bg-primary, .bg-success, .bg-info, .bg-warning, and .bg-danger:

EXAMPLE:

This text is important.

This text indicates success.

This text represents some information.

This text represents a warning.

This text represents danger.

© 2020 by Web Laboratory Instructor Guide. Proudly created with Wix.com

bottom of page