Caffeinated Coder
Book an appointment
Lesson 06 · Styling basics

Typography

Typography is how text looks. Write two small rules and watch the browser pick a font from a font stack (Inter is not installed, so Arial is used), pass the font, size and line height from body down to the heading and the paragraph, work out the heading's 2em as 36px, space the lines 1.5 apart and centre only the heading. Then see where each of the heading's values came from.

9 min8 steps5 questionsBeginner
Fig 6 · Interactive
Loading figure…
or ← →

Quiz Unlocks after the last step.