:visited

Matches any link that the user has already visited in their browser. For privacy reasons, the browser only allows you to change a few specific properties (like 'color' and 'background-color') using this selector.

Quick example

a:visited {
  color: #551a8b;
  /* standard purple color for visited links */
}

:visited Browser Support

Widely available Since 2020 96% global usage

This feature is well established and works across many devices and browser versions. It has been available across browsers since 2020.

Safe to use without fallbacks.

1+
1+
1+
12+
ESC