CSS · Typography

font-family

A fallback list of fonts. End with a generic family so text always renders.

Syntax
font-family: system-ui, sans-serif

Example

Try it

More in this group

font-size font-style font-variant-numeric font-weight letter-spacing line-height list-style overflow-wrap

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course