important! The foreword is a must-read!
This chapter mainly studies the anchor pseudo-class of CSS. The CSS anchor pseudo-class is a pseudo-class used for hyperlinks (a). It is often used in hyperlinks to allow hyperlinks to be displayed in different ways. There are 4 types of anchor pseudo-classes. , respectively: not visited (:link), visited (:visited), mouse hover (:hover), selected (active).
anchor pseudo-class
- :link (not visited)
- :visited (visited)
- :hover (mouseover)
- :active (selected)
Application order
:link > :visited > :hover > :active
code diagram
renderings