Little Web Hut
(Cascading Style Sheets) CSS 2.1 Reference

CSS Pseudo-class :visited Selector

 

What is a CSS Pseudo-class :visited Selector?

  • The :visited pseudo-class selector specifies links that have been visited. In the following example, the color property will be set to red for any <a> element link that has been visited.
CSS Example:
  a:visited {color: red;}
  <a href="http://www.littlewebhut.com">Visit Little Web Hut</a>
Test It HTML StyleTest It XHTML StyleTest It HTML5 Style