- CSS selector
In CSS, a selector is a mode for selecting elements that need to be styled. The computer can locate the corresponding element through the CSS selector.
- CSS selector syntax
1) Locate by pseudo-class name, id, tag name
2) Through the nested relationship before the element
3) Through attributes
4) Through the parent-child relationship
5) Element status
Case demonstration: