pseudo-class
:visited — CSS reference
Styles previously visited links subject to privacy protections. Only a restricted set of color-related properties may differ; scripts are deliberately prevented from reliably learning history through computed styles. Do not use this selector to detect a visit or verify a user’s browsing history.
Formal Syntax & Structure
css syntaxcss
a:visited { color: purple; }Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS reference lab</title><style>a:link {color:#006050} a:visited {color:#663399}</style><body><a id="a" href="https://example.invalid/reading">Reading</a></body></html>