CHAPTER 04
Beginner
Typography and Text Utilities
Updated: May 18, 2026
5 min read
# CHAPTER 4
Typography and Text Utilities
1. Chapter Introduction
Typography is the art of making text readable and beautiful. Bootstrap ships with a complete typographic system: heading classes, display text for hero sections, lead paragraphs, and dozens of utility classes for alignment, weight, color, and transformation — all without writing a single line of custom CSS.2. Learning Objectives
-
Use heading classes (
.h1–.h6) and display classes.
-
Apply
.leadfor emphasized intro text.
- Control text alignment, weight, and style.
- Transform text with text-transform utilities.
- Truncate, wrap, and break text.
3. Headings
html
4. Display Headings (Hero Text)
Display headings are larger, bolder versions for hero sections:
html
5. Lead Text and Inline Elements
html
6. Text Alignment
html
7. Font Weight and Style
html
8. Text Transformation
html
9. Text Colors
html
10. Text Overflow and Wrapping
html
11. Common Mistakes
-
Using display classes without semantic headings:
<div class="display-1">is semantically wrong. Use<h1 class="display-1">or at minimum add an ARIA role.
-
Combining
fw-boldwithfst-italic: These can be combined freely —class="fw-bold fst-italic".
12. MCQs
Question 1
What class creates emphasized intro paragraph text?
Question 2
What is the range of Bootstrap display heading classes?
Question 3
What class aligns text to the right?
Question 4
What class makes text bold?
Question 5
What utility converts text to uppercase?
Question 6
What does .text-truncate require to work?
Question 7
What class applies monospace font styling?
Question 8
What Bootstrap class sets font size to 1.5rem?
Question 9
What class makes text color the Bootstrap "muted" gray?
Question 10
How do you center text only on tablet and above?
13. Interview Questions
-
Q: What is the difference between Bootstrap's
.h1class and the<h1>element?
- Q: How would you make text responsive — different alignments on different screen sizes?