CSS: global keywords (property values)
CSS global values are keywords that can be applied to any property, overriding or bypassing normal cascade rules.
inherit-
the computed value from its parent element.
initial-
the initial value as defined by the CSS specification.
unset-
value is:
inherit→ if the property belongs to a type that is naturally inherited.initial→ if the property belongs to a type that is not inherited.
example of inherited properties:
colorfont-familyfont-sizetext-alignline-heightvisibility
example of non-inherited properties:
bordermarginpaddingbackground
revert-
browser's default value.
revert-layer-
Resets the property to the value set by the previous Cascade Layer , allowing for specific layer-based overrides.
CSS. misc, advanced
- CSS: @media query (responsive design)
- CSS: Variable (Custom Property)
- CSS: calc
- CSS: Reset, Default Values
- CSS: global keywords (property values)
- CSS: nesting syntax
- CSS: Computed Style
- CSS: Browser Default Style Sheet (2025-12)