Generic font
A generic font family is a CSS keyword representing a broad category of typefaces that browsers can select as a fallback.
Web Design Playground, Second Edition
A generic font family is a CSS font-family category that represents a broad class of typefaces and serves as a fallback when a specific font is unavailable.
- How it is used
- Provides dependable font-family fallbacks when a preferred typeface is unavailable.
- How deep it goes
- Defines five families and demonstrates font-family usage, but stops short of detailed typography internals.
- Examples
- Uses serif and sans-serif rules for headings and paragraphs, then places generic families after system fonts in fallback stacks.
- What you can do after
- Apply it via CSS by assigning serif, sans-serif, monospace, cursive, or fantasy to font-family.
Read how Web Design Playground, Second Edition explains generic font →
Web Design Playground
A fallback font category name in CSS that lets the browser choose an available font of a general type such as serif or sans-serif.
- How it is used
- Provides a general font choice for CSS text styling and a fallback when a hosted font cannot load.
- How deep it goes
- Defines five families and demonstrates direct selection and a hosted-font fallback, without detailing browser font-selection internals.
- Examples
- Shows sans-serif headings, serif paragraphs, and Lato paragraphs with a sans-serif fallback.
- What you can do after
- Apply it via CSS font-family to choose a general font or back up a hosted one.
Also covered in
What to know first
- paragraph elementAn HTML paragraph element is a p element representing a distinct block of related text.
- sans serif typefaceA sans-serif typeface is a typeface whose letterforms lack projecting finishing strokes called serifs.
- serifA serif typeface is a typeface whose letterforms have projecting finishing strokes at the ends of their main strokes.
Related concepts
- font-family propertyused by · The CSS font-family property specifies a preferred typeface or ordered sequence of fallback typefaces for rendering text.
- font stackconfigured by · A font stack is an ordered list of typefaces that specifies fallback choices when earlier fonts are unavailable.
- serifincludes · A serif typeface is a typeface whose letterforms have projecting finishing strokes at the ends of their main strokes.
- sans serif typefaceincludes · A sans-serif typeface is a typeface whose letterforms lack projecting finishing strokes called serifs.
- system fontalternative to · A system font is a typeface installed on an operating system and available for local text rendering.
- fontkind of · A font is a set of glyphs with a particular typeface design and rendering characteristics such as size, weight, style, or width.
Questions about generic font
What is generic font?
A generic font family is a CSS keyword representing a broad category of typefaces that browsers can select as a fallback.
Which Manning books explain generic font?
Web Design Playground, Second Edition and Web Design Playground.
What should I know before learning generic font?
Manning books that teach generic font usually introduce monospace typeface, paragraph element, sans serif typeface and serif first.
What is the difference between generic font and system font?
A generic font family is a CSS keyword representing a broad category of typefaces that browsers can select as a fallback. A system font is a typeface installed on an operating system and available for local text rendering.
What kinds of generic font are there?
Kinds of generic font include serif and sans serif typeface.
What is generic font a kind of?
Generic font is a kind of font. A font is a set of glyphs with a particular typeface design and rendering characteristics such as size, weight, style, or width.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

