A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/css/selectors/pseudo-classes/visited below:

:visited · WebPlatform Docs

:visited Summary

The :visited pseudo-class applies to links the user has visited

User agents commonly display unvisited links differently from previously visited ones. Selectors provides pseudo-classes to distinguish them:

After some amount of time, user agents may choose to return a visited link to the (unvisited) ‘:link’ state.

The two states are mutually exclusive.

Examples

The following style rule uses :visited to set the color attribute of visited links in a document.

a:visited { color:blue }
Usage
 :visited  is often used with :active, :hover, and :link, which are the pseudo-classes that reflect the other states of a link.

The default value of the :visited pseudo-class varies by browser, as does the amount of time used to define a recent visit.

Notes

The pseudo-classes :link and :visited can be abused to determine which sites a user has visited.

To preserver their users’ privacy, browsers often implement counter-measures against these abuses, while still rendering visited and unvisited links differently.

Related specifications
CSS 2.1
W3C Recommendation
Selectors Level 3
W3C Recommendation
Selectors Level 4
W3C Working Draft
Attributions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4