CKTIS / CSS
:link — unvisited links
The `:link` pseudo-class selects hyperlinks the browser treats as unvisited. It does not select `a` elements without an `href` attribute.
Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
Syntax
:link { /* declarations */ }
a:link { /* declarations */ }:link is a CSS pseudo-class without arguments that matches unvisited hyperlinks. In HTML, it applies to a and area elements with an href attribute. An a element without href does not match; a:link further restricts matching to a elements.
The :link and :visited states are mutually exclusive. To select hyperlinks regardless of browsing history, use :any-link. Browsers protect history privacy, so matching need not reflect every actual visit.
In the example, Destination should be blue if the browser treats its target as unvisited. Placeholder remains dark gray because it lacks href. Check the example in a fresh profile without following the link; the result depends on history state.
Examples
<!doctype html>
<html lang="en">
<meta charset="utf-8">
<title>:link example</title>
<style>
a { color: #333333; }
a:link { color: #0055aa; }
</style>
<p><a href="./link-demo-target.html">Destination</a></p>
<p><a>Placeholder</a></p>
</html>Result
With Destination treated as unvisited: Destination is blue (#0055aa); Placeholder is dark gray (#333333).
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.