Name

font-weight

Synopsis

Specifies the weight or “boldness” of the font for a text element.

Values:

normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 |
 inherit

Initial value:

normal

Applies to:

All elements.

Inherited:

Yes.

Computed value:

Numeric value or numeric value plus one of the relative values (bolder or lighter) if specified.

Get Web Design in a Nutshell, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.