The visited CSS pseudo-class lets you select only links that have been visited.
The visited selector is used to select visited links.
Browsers limits the styles that can be set for a:visited
links, due to security issues.
Allowed styles are:
- color
- background-color
- border-color (and border-color for separate sides)
- outline color
- column-rule-color
- the color parts of fill and stroke
All other styles are inherited from a:link
.
Syntax:
:visited {
css declarations;
}
Example:
a:visited { color: #4b2f89; }
a:visited { background-color: white }
For more details check this.