Skip to navigation

CSS Property: font-family

Font name. This can be a single font or a comma-separated list, of which a browser will apply the first font it can use (such as one installed on a user’s computer).

Possible Values

[Font family]Font name. Fonts are not CSS-specific and need to be either installed on a user’s computer or downloaded for CSS to grab hold of them and apply them.Helvetica
serifGeneric font family. Serif font, like Times or Times New Roman.
sans-serifGeneric font family. Sans-serif font, like Arial or Helvetica.
monospaceGeneric font family. Fixed-width font, like Courier.
cursiveGeneric font family. Flowing font, like Zapf Chancery.
fantasyGeneric font family. Daft font, like Papyrus.
[Multiple font families]A comma-separated list of font family names. A browser will apply the first font in that list that is is capable of applying.Helvetica, Arial, sans-serif


body { font-family: Helvetica, Arial, sans-serif; }
blockquote { font-family: Times, "Times New Roman", serif; }

Browser support