In CSS, inheritance controls what happens when no value is specified for a property on an element.
CSS properties can be categorized in two types:
- inherited properties, which by default are set to the computed value of the parent element
- non-inherited properties, which by default are set to initial value of the property
Refer to any CSS property definition to see whether a specific property inherits by default ("Inherited: yes") or not ("Inherited: no").