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.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access