CSS font-weight Property Reference

The CSS font-weight property is a standard property in CSS Fonts. Review its formal syntax, computed behavior, and practical declarations.

CSS font-weight Property Reference

The CSS font-weight property is a standard property in CSS Fonts. Review its formal syntax, computed behavior, and practical declarations.

Updated 2026-08-12

font-weight overview

The CSS font-weight property is a standard property in CSS Fonts. Review its formal syntax, computed behavior, and practical declarations.

The computed value normally inherits from the parent element when no declaration wins the cascade.

Syntax and formal definition

font-weight formal syntax
FieldValue
Formal syntax<font-weight-absolute> | bolder | lighter
Initial valuenormal
Applies toallElementsAndText
InheritedYes
Percentagesno
Computed valuekeywordOrNumericalValueBolderLighterTransformedToRealValue
Animation typebyComputedValueType
Mediavisual
Specification groupCSS Fonts
StatusStandard

Practical examples

These declarations demonstrate valid ways to set font-weight. The initial and inherit global keywords remain available even when a property-specific value is preferable.

font-weight live example
CSS .reset-example { font-weight: initial; } .inherit-example { font-weight: inherit; } @supports (font-weight: initial) { .supported { font-weight: initial; } }

Description

The CSS font-weight property is a standard property in CSS Fonts. Review its formal syntax, computed behavior, and practical declarations.

References

  1. MDN: font-weight
  2. MDN: CSS Properties Reference

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies