4. Fonts and text style
font-family lists fonts in order of preference, ending with a generic family such as sans-serif. font-weight: bold makes text heavier. text-align aligns text, and line-height sets the space between lines.
A line-height around 1.5 makes long paragraphs comfortable to read.
Show example
body {
font-family: system-ui, sans-serif;
line-height: 1.5;
}
h2 {
font-weight: bold;
text-align: center;
}
✍️ Your turn
Give the .title class bold text, center alignment, and a line-height of 1.6.