Font family

noun

say it: “FONT FAM-uh-lee” /fɑnt ˈfæməli/

The CSS property that picks the typeface for text, written as a list of fonts to try in order, ending with a general family such as serif or sans-serif.

What does font-family do?

font-family picks the typeface. List a few, ending with a generic family, so the browser has a fallback.

body { font-family: "Segoe UI", Roboto, Arial, sans-serif; }

In a sentence

  • “I set the font family to Georgia, serif to give the recipe page an old cookbook look.”

Level: Novice · More CSS terms at this level

Updated