Name
font-weight
Values:
normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900
Example:
STRONG { font-weight: 700 }
Applies to:
All elements
Inherited:
Yes
The font-weight
property specifies the weight, or
boldness, of the type. It can be specified either as a descriptive
term (normal
, bold
,
bolder
, lighter
) or as one of
the nine numeric values listed above. The default font weight is
normal
, which corresponds to
400
on the numeric scale. Typical
bold
text corresponds to 700
on
the numeric scale. There may not be a font face within a family that
corresponds to each of the nine levels of boldness (some may come in
only normal
and bold
weights).
Unfortunately, the current browsers are inconsistent in support of the font-weight property.
Get Web Design in a Nutshell 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.