CSS/Selectors/pseudo-classes/:visited
Pseudo-classes :visited
The :visited pseudo-class applies once the link has been visited by the user.
Syntax
selector:visited{ properties }
Example
[style.css]
a:link{ color: red; } a:visited{ color: green; }
[index.html]
<body> <p><a href="http://www.w3.org/">W3C</a> is an international community</p> </body>
CSS defines the :visited pseudo-class in 6.6.1. Dynamic pseudo-classes.