Description
The :visited pseudo-class matches link elements that are visited.
This selector has the form:
:visited {
declaration block
}
Examples
This example shows how to set the font color of all visited HTML links to red
.
a:visited {
color:red;
}
This example sets specific colors for various link states.
a:link {color:#FF0000}
a:visited {color:#00FF00}
a:hover {color:#FF00FF}
a:active {color:#0000FF}
Browser Support
Chrome | Firefox | IE | Safari | Opera |
---|---|---|---|---|
Miscellaneous Information
Defined In: | CSS1 |
---|