CSS-wide keywords
The values inherit, initial, unset and revert, which work on any CSS property to control inheritance explicitly.
In more detail
inherit copies the parent's value, initial uses the property's specification default, and unset acts as inherit for inherited properties and initial for the rest. revert goes back to the browser's default style.
Related terms
- CSS inheritance — The CSS rule that some properties, mostly text-related ones like color and font, pass their value from a parent to its descendants unless overridden.
- CSS cascade — The CSS process that decides which of several competing rules sets a property on an element.
Taught in
- The Cascade Algorithm: Specificity, Inheritance And Source Order — Frontend Architecture & Web Platform