css.properties

font-weight

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

Formal Syntax

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

See specification

JavaScript Access

// Access via element.style element.style.fontWeight = "normal";

Browser Support

standard | MDN ยท Spec

FeatureChromeFirefoxSafariEdge
font-weight21112
bold21112
bolder21112
lighter21112
normal21112
number62611117

Related Properties