HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

font-weight

Description

The font-weight property for CSS specifies the weight of glyphs in the font, their degree of blackness, or stroke thickness.

Syntax

CSS

font-weight: value;

JS

object.style.fontWeight = "value";

Values

<'font-weight'> = <font-weight-absolute> | bolder | lighter
<font-weight-absolute> = [normal | bold |  <number [1,1000]>]
normal

Same as 400.

bold

Same as 700.

<number [1,1000]>

Each number indicates a weight that is at least as dark as its predecessor. Only values greater than or equal to 1, and less than or equal to 1000, are valid, and all other values are invalid.

100 - Thin
200 - Extra Light (Ultra Light)
300 - Light
400 - Normal
500 - Medium
600 - Semi Bold (Demi Bold)
700 - Bold
800 - Extra Bold (Ultra Bold)
900 - Black (Heavy) 
bolder

Specifies a bolder weight than the inherited value.

lighter

Specifies a lighter weight than the inherited value.

Initial

normal

Examples

1 · bold

2 · bolder

3 · lighter

4 · normal

5 · number

6 · JS