back

Font-Family

This is used to set the font of an element.
You have three options:
(1) Font name, the name of a specific font.
(2) Generic name, the name of a generic font family, such as Serif or Sans-Serif.
(3) Inherit, the font-family is inherited from its parent element.
Fonts can be 'stacked' by separating them with commas. If the first font is unavailable, then the browser moves on to the second.
If a font name contains spaces, then it must be quoted.

Example