🔤Font Fallback
Also known as Fallback Font, Backup Font, Font Stack
The backup font a page shows when its first font is missing or slow.
Think of it like
It is like a backup player on a team. If the star cannot play, the next one steps in.
Example
A blog asks for Lora, then Georgia, then any serif. On a slow phone, Georgia shows first. Lora swaps in a moment later.
Why it matters
Without a fallback, text can show blank or in a random font while the page loads.
Definition
Example code
css
body {
font-family: "Lora", Georgia, serif;
}Common mistake
Key takeaways
- 1List in order. First choice first, backups after.
- 2End with a kind. Like serif or sans-serif.
- 3Match the size. So nothing jumps at the swap.