<?xml version="1.0" encoding="utf-8"?>

CSS global values

CSS global values

Global values can be used for any CSS property and on any HTML element:

  • initial resets all properties to their default value. For example, color: initial; will set the text color to black as it's the default.
  • inherit specifies that a property should inherit its value from its parent element. An element with color: inherit; declaration will have the same text color as its parent.
  • unset works the same as inherit for inherited properties types and as initial for non-inherited properties.[1]
Improve your UX & Product skills with interactive courses that actually work