Bootstrap Typography

Bootstrap 4 typography utilities control headings, display text, alignment, font weight, italics and wrapping without custom CSS for common cases.

Headings and Display Text Top ↑

<h1>Heading 1</h1>
<p class="h3">Paragraph styled like H3</p>
<h1 class="display-4">Display 4</h1>
<p class="lead">Lead paragraph</p>

Alignment and Font Weight Top ↑

<p class="text-left">Left</p>
<p class="text-center">Center</p>
<p class="text-right">Right</p>

<p class="font-weight-bold">Bold</p>
<p class="font-weight-normal">Normal</p>
<p class="font-italic">Italic</p>

Responsive Text Alignment Top ↑

<p class="text-center text-md-left">
  Centered on small screens, left aligned from md upward.
</p>

Original Source Examples Retained for Migration Reference Top ↑

These original examples are preserved so no learner-purpose code is silently dropped. The current examples above are the recommended implementation for this page.

Original example 1

<p class='text-warning'><del>Text is deleted with class='text-warning'</del></p>

Original example 2

<p class='text-info'><i>Text is italic with class='text-info'</i></p>

Original example 3

<abbr title="HyperText Markup Language" >HTML</abbr> is language of the internet.

Original example 4

<blockquote class="blockquote">
  <p class="mb-1">You can learn JQuery from plus2net.com.</p>
</blockquote>

Original example 5

<blockquote class="blockquote text-center">
  <p class="mb-1">You can learn JQuery from plus2net.com.</p>
</blockquote>

Original example 6

<blockquote class="blockquote text-right">
  <p class="mb-1">You can learn JQuery from plus2net.com.</p>
</blockquote>

Original example 7

Use Script code <code>location.reload();</code>  to reload a page.

Original example 8

<pre>Line one
Line two
	Line three
Line four</pre>

Original example 9

<pre>
    A     A
     A   A
      A A
       A	
      A A
     A   A
    A     A
</pre>

Original example 10

<p class="display-1">Display 1</p>
<p class="display-2">Display 2</p>
<p class="display-3">Display 3</p>
<p class="display-4">Display 4</p>

Additional Original Learning Routes Top ↑






plus2net.com






We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles Contact us
©2000-2026   plus2net.com   All rights reserved worldwide Privacy Policy Disclaimer