font-weight

The font-weight property specifies the weight of the font.

font-weight: normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | inherit
Initial: normal
Applies To: all elements
Inherited: yes
Percentages: NA
Media: visual

Values

Δ

font-weight: value;
 
Value: Description:
bold 700 in the ordered sequence
bolder Bolder relative to the weight inherited from the parent
inherit Takes the same computed value as the property for the element's parent
lighter Lighter relative to the weight inherited from the parent
normal 400 in the ordered sequence

DOM

Δ

[window.]document.getElementById("element-id").style.fontWeight = "font-weight";

Example | Values | 100-900

Δ

Example | Values | bold

Δ

Example | Values | bolder

Δ

Example | Values | lighter

Δ

Example | Values | normal

Δ

Example | DOM

Δ

References

Δ