The main content of this chapter is how to get the elements in the document given to render:
1. Element selector;
2.ID selector;
3.CLSSS selector;
4. Wildcard selector: *;
5. Property selector: selector[]
6. Partial Property selector: selector[~= "Warning"] [doo^= "Bar"] [doo$= "Bar"] [boo*= "bar]
7. Specific attribute selector: *[lang |= "en"]
8. Descendant Selector
9. Group Selector
10. Adjacent selector: H1 + P {}
11. Direct sub-selector: h1 > P
12. Pseudo-class and pseudo-elements:
Pseudo-class: Link:visited:hover:active:focus First-child
Pseudo element:: First-letter first-line:before:after
Note: First-letter and first-line can only be applied to block elements such as paragraph marks and cannot be applied to inline elements.
Summary: Some of the front-end engineers ' ideas can be accomplished through selectors, so be aware of these selectors accurately.
"CSS authoritative guide (third Edition)"---chapter II selector