B.38. font-family

This property lets you set the typeface used to display text in an element. Like the HTML font tag, this property lets you specify a list of fonts, each of which will be tried in order.

If the first font is not available on the user's system, or if a particular character is not present in the font, the browser will check the second font in the list, and so on. This per-character fallback method (which is specified only as of CSS2, and is therefore not yet supported in all browsers) lets you create multilingual content and then list a font for each language; the browser should pick and choose characters from the fonts in the list, always giving preference to those listed first.

Any time you set this property, the font list ...

Get HTML Utopia: Designing Without Tables Using CSS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.