CSS: global keywords
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
inheritif the property is naturally inherited. else, value isinitial.example of inherited properties:
colorfont-familyfont-sizetext-alignline-heightvisibilityexample 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)