Font Family & Font Stacks
The font-family property specifies which typeface to use. Because fonts are not guaranteed to be installed on every device, you provide a font stack — a prioritised list of fonts ending in a generic family.
Generic Families
CSS defines five generic families as ultimate fallbacks: serif, sans-serif, monospace, cursive, and fantasy. Always end your stack with one of these.
System Font Stack
Modern sites often use the OS's own UI font for a native feel and zero network cost. The system font stack targets each major OS's native font.
Quoting Font Names
Font names containing spaces must be quoted. Single-word names may be unquoted.