css.properties

font-family

The font-family property specifies the font family for text.

Formal Syntax

[ <family-name> | <generic-family> ]#

See specification

JavaScript Access

// Access via element.style
element.style.fontFamily = 'value';

Browser Support

standard | MDN · Spec · Spec

FeatureChromeFirefoxSafariEdge
font-family11112
cursive11112
fangsong11112
fantasy11112
kai11112
khmer-mul11112
math109145109
monospace11112
nastaliq11112
sans-serif11112
serif11112
system-ui56921179
ui-monospace13.1
ui-rounded13.1
ui-sans-serif13.1
ui-serif13.1

Related Properties