Documente Academic
Documente Profesional
Documente Cultură
Table of Contents
1. Default Font Sizes in Bootstrap 4
2. Where Bootstrap's Typography Can Be Applied?
3. Headings in Bootstrap 4
4. Subheadings in Bootstrap 4
5. Display headings in Bootstrap 4
6. Lead in Bootstrap 4
7. Text Colors in Bootstrap 4
8. Some Other Typography Classes in Bootstrap 4
.display-1 6rem
.display-2 5.5rem
.display-3 4.5rem
.display-4 3.5rem
p 1rem
In the "rem" unit, if you are changing its size to Root, it will affect the size of all the
elements of the defined page using the "rem" unit.
Headings in Bootstrap 4
There are default heading tags in HTML and Bootstrap implements styles on it.
Heading is more bold and increased font size in bootstrap 4 than the default HTML
headings.
Example:
<h1> Heading 1 </h1>
<h2> Heading 2 </h2>
.h1 through .h6 classes are also available, for when you want to match the font
style of a title, but can not use the corresponding HTML element.
Example:
<h1 class="h2"> Heading 1 in the size of Heading 2 </h1>
Subheadings in Bootstrap 4
The concept of inline subheading will add an additional heading which will act as a
subheading for the main <hN> heading (where 'N' is any number between 1 to 6).
For this, you have to add the <small> tag as a nested tag within the head element
to get the formatting of subheading which you can see in the example below:
Example:
<h1> Heading 1 <small>SubHeading 1</small> </h1>
Example:
<h1 class="display-1">Display Heading 1</h1>
Lead in Bootstrap 4
Lead is used to add some emphasis to any paragraph content. It can be
implemented something like this:
Example:
<p> This is normal Text without any lead class not emphasized. </p>
<p class="lead"> Example of Lead class with paragraph showing its use to
emphasize text. </p> Run
.text-danger Red is mostly avoided in most designs because it shows danger or anger. Bu
according to your design needs.
.text-info This class is used to display texts in blue color which is different from .text_pr
.text-light This class displays text in light colors that are not white.
.small For creating smaller text which is comparatively 85% smaller than the size
.text-break This class helps in preventing long text from breaking design and layout.