More "Try it Yourself" examples below.
The :visited selector is used to select visited links.
Tip: Use the :link selector to style links to unvisited pages, the :hover selector to style links when you mouse over them, and the :active selector to style links when you click on them.
Browsers limits the styles that can be set for a:visited links, due to security issues.
Allowed styles are:
All other styles are inherited from a:link.
Version: | CSS1 |
---|
The numbers in the table specifies the first browser version that fully supports the selector.
Selector | |||||
---|---|---|---|---|---|
:visited | 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