Master Bootstrap's typography classes for beautiful text styling.
Apply heading styles to any element using .h1 to
.h6 classes.
.h1 through .h6
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Use .display-1 to .display-6 for larger,
bolder headings:
.display-1 through .display-6
Display 1
Display 2
Display 3
Display 4
Display 5
Display 6
.lead
This is a lead paragraph. It stands out with larger font and lighter weight.
.small
Normal text and small text
.mark
Normal text with highlighted text
.fw-bold
Bold text
.fw-normal
Normal text
.fw-light
Light text
.fst-italic
Italic text
.text-decoration-underline
Underlined text
.text-decoration-line-through
Strikethrough text
.text-start
Left aligned text
.text-center
Center aligned text
.text-end
Right aligned text
.lh-1 (Tight)
This is a paragraph with tight line height. The lines are very close together.
.lh-sm (Small)
This is a paragraph with small line height. Slightly more space than tight.
.lh-base (Normal)
This is a paragraph with normal line height. The default spacing for readability.
.lh-lg (Large)
This is a paragraph with large line height. More space between lines.
| Category | Classes | Description |
|---|---|---|
| Headings | .h1 - .h6 |
Apply heading styles to any element |
| Display | .display-1 - .display-6 |
Larger, bolder headings |
| Text Styles |
.lead, .small, .mark
|
Lead paragraph, small text, highlight |
| Font Weight |
.fw-bold, .fw-normal,
.fw-light
|
Text weight control |
| Font Style | .fst-italic |
Italic text |
| Decoration |
.text-decoration-underline,
.text-decoration-line-through
|
Underline and strikethrough |
| Alignment |
.text-start, .text-center,
.text-end
|
Text alignment |
| Line Height |
.lh-1, .lh-sm, .lh-base,
.lh-lg
|
Line height control |