:visited CSS Pseudo Class

Description

The :visited pseudo-class is applied to links already visited by the user, and sets the style for them.

Syntax

a:visited { ... } 

Example

<p><a href="#1">Test Link 1</a></p> 
<p><a href="#2">Test Link 2</a></p>
<p><a href="#3">Test Link 3</a></p>
a:link { 
color: red;
}
a:visited {
color: green;
}

Browser Support

Desktop
Explorer Edge Chrome Firefox Opera Safari
412113.51
Tablets / Mobile
Android Chrome Firefox Opera Safari Samsung
4.418410.11X