concept
inheritance — CSS reference
Inherited properties take the parent’s computed value when no winning declaration specifies another value. Non-inherited properties normally take their initial value instead. Even a very specific rule on a parent does not beat an explicit declaration on a child. Inheritance follows the relevant element tree, not arbitrary containing blocks.
Formal Syntax & Structure
css syntaxcss
section { color: #006050; }Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS reference lab</title><style>#parent {color:#006050;background-color:#fff} #b {color:#184168}</style><body><section id="parent"><p id="a">Inherited</p><p id="b">Specified</p></section></body></html>