fallback
A second choice used when the first is unavailable, such as a simpler layout for older browsers or a default value when a variable is missing.
In more detail
A good fallback keeps the feature usable, even if less polished. The course uses fallbacks in several places: flex layouts behind @supports, the second argument of var(), and falling back to the cache when the network fails.
Related terms
- progressive enhancement — Building a page that works everywhere first, then adding better features for browsers that support them.
- var() — The CSS function that reads a custom property, with an optional fallback: var(--brand, #2563eb).
- network-first strategy — A caching strategy that tries the network first for fresh data and falls back to the cached copy only when the request fails.
Taught in
- CSS Subgrid: Inheriting Track Sizing Across Nested Layouts — Frontend Architecture & Web Platform
- CSS Custom Properties: Scoping, Fallbacks And Theming — Frontend Architecture & Web Platform
- Cache Storage API: Offline Strategies And Cache-First Patterns — Frontend Architecture & Web Platform