css.properties

font-size

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

Formal Syntax

font-size = <absolute-size> | <relative-size> | <length-percentage [0,∞]> | math

See specification

JavaScript Access

// Access via element.style element.style.fontSize = "medium";

Browser Support

standard | MDN Β· Spec

FeatureChromeFirefoxSafariEdge
font-size11112
math109117β€”109
rem_values3131712
xxx-large797016.479

Related Properties