Typography
Set type scales, weights, line height and readable measures.
What you will be able to do
- Use text-sm through text-4xl sparingly.
- Use font-semibold for headings, not every level.
- Use leading-relaxed for body copy.
- Use tracking-tight on large headings.
In plain English
Readable typography is mostly rhythm and measure. Use a limited set of sizes, tighten big headings, keep body line height generous and cap the width with max-w-prose.
<div class="max-w-prose">
<h1 class="text-3xl font-semibold tracking-tight text-slate-900">Learn by building</h1>
<p class="mt-3 leading-relaxed text-slate-600">Short lessons, real examples and a challenge at the end of every page.</p>
</div>Your turn
EasyTighten a hero heading
Make an h1 large, semibold and tightly tracked.
HTML · starter
<h1 class="">Check your understanding before moving on.
Knowledge checkQuestion 1
Which utility caps a paragraph at a comfortable line length?
Select an answer to continue
Study tools
Make it yours.
Keep a private note for this lesson, then turn the key ideas into flashcards you can revisit.
Sign in to save notes and flashcards.Both are private to your account and stay with your progress.
Sign inFinished reading?
Lock in what you just learned.
0%
Mark this lesson complete to save your place and move one step closer to the certificate.