← Back to pseudo-classes
CSS Pseudo-class / Element
:visited
User ActionApplies styles to links that the user has already visited.
Syntax
a:visited { }Example
a:visited { color: #a78bfa; }Common use cases
- Distinguishing visited from unvisited links
- Improving navigation in content-heavy sites
- Meeting accessibility guidelines for link states
Practical developer insight
For privacy reasons, browsers restrict which CSS properties :visited can change — only color, background-color, border-color, and outline-color are allowed.