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: Case Sensitivity
- CSS: Declare Charset
- CSS: Comment Syntax
- CSS: Default Unit
- CSS: Computed Style
- CSS: Pseudo Element
- CSS: Pseudo Class
- CSS: Specificity
- CSS: Data URI Scheme
- HTML: Protocol-Relative URL
- CSS: Browser Default Style Sheet (2025-12)