font-weight

The font-weight CSS property sets the weight (or boldness) of the font. The weights available depend on the font-family that is currently set.

Initial value normal
Applies to all elements. It also applies to ::first-letter and ::first-line.

Syntax

  
font-weight: bold;
  

Values

Normal font weight. Same as 400.
Bold font weight. Same as 700.
One relative font weight lighter than the parent element. Note that only four font weights are considered for relative weight calculation; see the Meaning of relative weights section below.
One relative font weight heavier than the parent element. Note that only four font weights are considered for relative weight calculation; see the Meaning of relative weights section below.
A value between 1 and 1000, inclusive. Higher numbers represent weights that are bolder than (or as bold as) lower numbers. Certain commonly used values correspond to common weight names, as described in the Common weight name mapping section below.

Browser support

font-weight212133.51
number6217614911

We use cookies to improve your experience. Learn more in our Privacy policy.

×