.display-1to.display-6: large, eye-catching headings..lead: a paragraph that stands out..text-center,.text-end,.text-uppercase,.fw-bold,.fst-italic.text-muted/.text-body-secondary,.small,<mark>.blockquotewith.blockquote-footer
Bootstrap Typography
Headings, display text, lead and text utilities.
✍️ 3 exercises + code challenge in this lessonKey Takeaways: Bootstrap Typography
Mastering Bootstrap Typography helps you write clean and reliable Bootstrap code. Follow standard conventions, test edge cases, and keep logic simple. Try running the code example below and complete the exercises to build confidence.
Bootstrap Typography Code Example
Bootstrap<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
<div class="container py-3">
<h1 class="display-5 fw-bold">Display heading</h1>
<p class="lead">A lead paragraph that introduces the page.</p>
<p class="text-uppercase text-secondary small">Uppercase, small and muted</p>
<p>Some <mark>highlighted</mark> and <strong class="text-primary">coloured</strong> text.</p>
<figure>
<blockquote class="blockquote"><p>Simplicity is the soul of efficiency.</p></blockquote>
<figcaption class="blockquote-footer">Austin Freeman</figcaption>
</figure>
</div>
Bootstrap Typography Practice Exercises
Check what you learned in “Bootstrap Typography”.
Make the paragraph stand out.
<p class="">Introduction text</p>
Which class makes text bold?
Give the heading the class "display-4" and centre it with "text-center".
Free sign-in required · Google login available
Stuck on something?
Ask the community in the CodesInTech forum.
Need a developer?
Learning on your own is great — and when you need professional help, our team builds custom software, websites and mobile apps for clients worldwide.
Explore Our Services