Переклад цієї статті ще не завершено. Будь ласка, допоможіть перекласти цю статтю з англійської мови

The font-weight CSS property specifies the weight (or boldness) of the font. The font weights available to you will depend on the font-family you are using. Some fonts are only available in normal and bold.


/* Keyword values */
font-weight: normal;
font-weight: bold;

/* Keyword values relative to the parent */
font-weight: lighter;
font-weight: bolder;

/* Numeric keyword values */
font-weight: 100;
font-weight: 200;
font-weight: 300;
font-weight: 400;
font-weight: 500;
font-weight: 600;
font-weight: 700;
font-weight: 800;
font-weight: 900;

/* Global values */
font-weight: inherit;
font-weight: initial;
font-weight: unset;

The font-weight property is specified using a single keyword value from the list below.


Normal font weight. Same as 400.
Bold font weight. Same as 700.
One font weight lighter than the parent element (among the available weights of the font).
One font weight heavier than the parent element (among the available weights of the font).
100, 200, 300, 400, 500, 600, 700, 800, 900
Numeric font weights for fonts that provide more than just normal and bold.

Fallback weights

If the exact weight given is unavailable, then the following heuristic is used to determine the weight actually rendered:

  • If a weight greater than 500 is given, the closest available heavier weight is used (or, if there is none, the closest available lighter weight).
  • If a weight less than 400 is given, the closest available lighter weight is used (or, if there is none, the closest available heavier weight).
  • If a weight of exactly 400 is given, then 500 is used. If 500 is not available, then the heuristic for font weights less than 400 is used.
  • If a weight of exactly 500 is given, then 400 is used. If 400 is not available, then the heuristic for font weights less than 400 is used.

This means that for fonts that provide only normal and bold100-500 are normal, and 600-900 are bold.

Meaning of relative weights

When lighter or bolder is specified, the following chart shows how the absolute font weight of the element is determined:

Inherited value bolder lighter
100 400 100
200 400 100
300 400 100
400 700 100
500 700 100
600 900 400
700 900 400
800 900 700
900 900 700

Common weight name mapping

The numerical values (100 to 900) roughly correspond to the following common weight names:

Value Common weight name
100 Thin (Hairline)
200 Extra Light (Ultra Light)
300 Light
400 Normal (Regular)
500 Medium
600 Semi Bold (Demi Bold)
700 Bold
800 Extra Bold (Ultra Bold)
900 Black (Heavy)


A font-weight value is interpolated via discrete steps (multiples of 100). The interpolation happens in real number space and is converted to an integer by rounding to the nearest multiple of 100, with values halfway between multiples of 100 rounded towards positive infinity.

Formal syntax

<font-weight-absolute> | bolder | lighter

<font-weight-absolute> = normal | bold | <number <a href="/uk/docs/CSS/Value_definition_syntax#Brackets" title="Brackets: enclose several entities, combinators, and multipliers to transform them as a single component">[1,1000]>



  Alice was beginning to get very tired of sitting by her sister on the
  bank, and of having nothing to do: once or twice she had peeped into the
  book her sister was reading, but it had no pictures or conversations in
  it, 'and what is the use of a book,' thought Alice 'without pictures or

<div>I'm heavy<br/>
  <span>I'm lighter</span>


/* Set paragraph text to be bold. */
p {
  font-weight: bold;

/* Set div text to two steps heavier than
   normal but less than a standard bold. */
div {
 font-weight: 600;

/* Set span text to be one step lighter
   than its parent. */
span {
  font-weight: lighter;



Specification Status Comment
CSS Fonts Module Level 3
The definition of 'font-weight' in that specification.
Candidate Recommendation No change.
CSS Transitions
The definition of 'font-weight' in that specification.
Working Draft Defines font-weight as animatable.
CSS Level 2 (Revision 1)
The definition of 'font-weight' in that specification.
Recommendation No change.
CSS Level 1
The definition of 'font-weight' in that specification.
Recommendation Initial definition.
Initial valuenormal
Applies toall elements. It also applies to ::first-letter and ::first-line.
Computed valuethe keyword or the numerical value as specified, with bolder and lighter transformed to the real value
Animation typea font weight

Browser compatibility

Update compatibility data on GitHub
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
font-weightChrome Full support 2Edge Full support 12Firefox Full support 1IE Full support 3Opera Full support 3.5Safari Full support 1WebView Android Full support 1Chrome Android Full support 18Firefox Android Full support 4Opera Android Full support 10.1Safari iOS Full support 1Samsung Internet Android Full support 1.0
<number> syntaxChrome Full support 62Edge Full support 17Firefox Full support 61IE No support NoOpera Full support 49Safari Full support 11WebView Android Full support 62Chrome Android Full support 62Firefox Android Full support 61Opera Android Full support 46Safari iOS Full support 11Samsung Internet Android Full support 8.0


Full support  
Full support
No support  
No support