CSS pseudo classes are divided into two types:
1. UI pseudo-class
2. Structured pseudo-classes
UI pseudo class
When the HTML element is in a certain state, the UI pseudo class applies the CSS style. The most common tag of the UI pseudo class is a, and the link pseudo class is used, you can hover over the mouse to change the color and remove the underline Of the text or the prompt information panel.
Link pseudo-class
There are four link pseudo classes.
① Link: Waiting for users to click
② Visited users have clicked
③ Hover
④ Active link being clicked
The following is the link a tag with four pseudo-class delimiters.
The above colon indicates that this is a pseudo class, and two colons: indicates that it is a new pseudo class in CSS3.
Effect after running according to the preceding CSS rules
The preceding four pseudo classes are not only used for tag a, but also for tag p and h.
: Foucs pseudo class
Used to obtain the focus of a form
Updating below