pseudo-class
:link — CSS reference
Matches unvisited hyperlinks; an anchor without href is not a link. Link history and privacy policies affect matching. Use :any-link for styling independent of visit history.
Formal Syntax & Structure
css syntaxcss
:linkWorking Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS reference lab</title><style>#a,#b {color:#202020} #a:link {color:#006050}</style><body><a id="a" href="https://example.invalid/unvisited">Link</a><a id="b">Not a link</a></body></html>