CSS font-weight Property Explained
What the CSS font-weight property does, with an example.
Published November 6, 2026
font-weight sets how bold text is, from 100 (thin) to 900 (black). 400 is normal and 700 is bold. Variable fonts allow any value in their range.
How it works
Keywords: normal (400), bold (700), lighter and bolder (relative). The font must provide the weight, otherwise the browser fakes it or picks the nearest.
Load only the weights you use to save bandwidth.
Values and effects
font-weight: 300; → light
font-weight: 400; → normal
font-weight: 600; → semi-bold
font-weight: 700; → bold
font-weight: 900; → black
Practical examples
Heading
h1 { font-weight: 700; }Variable font
@font-face { font-family: Inter; src: url(inter-var.woff2); font-weight: 100 900; }
body { font-weight: 450; }Link emphasis
a { font-weight: 500; }Common mistakes
- Requesting weights the font file doesn't include (faux bold).
- Loading all weights and slowing the page.
- Using bold for emphasis instead of em/strong semantics.
Key takeaways
- font-weight in one line: font-weight sets how bold text is, from 100 (thin) to 900 (black).
- Inspect it live in DevTools → Styles.
- Test across browsers and screen sizes.
FAQ
What is faux bold?
Browser-synthesised bold when the real weight isn't available; it looks worse.
Is font-weight supported in all browsers?
Yes in all modern browsers; check caniuse.com for edge cases.