1. CSS Inheritance Features
All CSS statements are based on the direct inheritance of the individual tags, CSS inheritance refers to the child tag inherits all the style of the parent tag, and can then be modified on the basis of the style of the parent markup style, resulting in a new style, and the style of the child tag does not affect the parent tag at all.
CSS inherits throughout the entire CSS design, and each tag follows the concept of CSS inheritance.
Example:
<!DOCTYPE HTML><HTML><Head> <title></title> <styletype= "Text/css">H1{Color:Blue;text-decoration:Underline; }em{Color:Red; } </style></Head><Body> <H1>CSS Inheritance<em>Characteristics</em></H1></Body></HTML>
CSS Effects:
2. CSS cascading features
The cascading nature of CSS can be easily understood as a "conflict" solution.
CSS precedence rules: Inline style > ID style > Category style > Marker style.
CSS series: CSS Inheritance and cascading features