Typography Essentials in Bootstrap
Bootstrap provides a set of typography classes for consistent styling of text elements. These classes can be applied to headings, paragraphs, spans, and other text elements.
Common Typography Classes
Headings
Headings can be styled using classes such as h1 to h6 to adjust their sizes.
index.html
Font size
Bootstrap provides classes like fs-1, fs-2, fs-3, fs-4, fs-5, and fs-6 to control font (text) sizes.
index.html
Font weight and italics
Font weights can be set using the class fw-* (font-weight), while italic styling can be achieved using the class fst-*(font-style).
index.html
Lead text
The lead class is used to add emphasis to a paragraph by increasing its font size and weight.
Text alignment
Classes like text-start, text-center, and text-left are used to align text elements.
index.html
Thanks for your feedback!
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 3.23
Typography Essentials in Bootstrap
Swipe to show menu
Bootstrap provides a set of typography classes for consistent styling of text elements. These classes can be applied to headings, paragraphs, spans, and other text elements.
Common Typography Classes
Headings
Headings can be styled using classes such as h1 to h6 to adjust their sizes.
index.html
Font size
Bootstrap provides classes like fs-1, fs-2, fs-3, fs-4, fs-5, and fs-6 to control font (text) sizes.
index.html
Font weight and italics
Font weights can be set using the class fw-* (font-weight), while italic styling can be achieved using the class fst-*(font-style).
index.html
Lead text
The lead class is used to add emphasis to a paragraph by increasing its font size and weight.
Text alignment
Classes like text-start, text-center, and text-left are used to align text elements.
index.html
Thanks for your feedback!