More "Try it Yourself" examples below.
The :link selector is used to select unvisited links.
Note: The :link selector does not style links you have already visited.
Tip: Use the :visited selector to style links to visited pages, the :hover selector to style links when you mouse over them, and the :active selector to style links when you click on them.
Version: | CSS1 |
---|
The numbers in the table specifies the first browser version that fully supports the selector.
Selector | |||||
---|---|---|---|---|---|
:link | 4.0 | 7.0 | 2.0 | 3.1 | 9.6 |
Select and style unvisited, visited, hover, and active links:
Style links with different styles:
CSS tutorial: CSS Links
CSS tutorial: CSS Pseudo classes