concept
cascade — CSS reference
The cascade chooses a winning declaration separately for each property on each element. Eligibility comes first, then origin and importance, encapsulation context, element-attached style, layer order, selector specificity, scope proximity and source order where applicable. Inheritance fills missing values after cascading; it is not a contest between parent and child selectors.
Formal Syntax & Structure
css syntaxcss
p { color: #184168; } .note { color: #006050; }Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS reference lab</title><style>#a {background-color:white} p {color:#184168} .note {color:#006050}</style><body><p id="a" class="note">Field note</p><p id="b">Control</p></body></html>