Used to select and style unvisited links.
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.
ExamplesThe following style rule uses the :link pseudo-class to set the default color attribute of a link in a document.
<style>
A:link { color:#FF0000 }
</style>
Usage
The :link pseudo-class is often used with :active, :hover and :visited, the pseudo-classes that affect the other states of a link.
The default value of the :link pseudo-class is browser-specific. The time period used to define a recent visit also varies by browser.
NotesNote: It is possible for style sheet authors to abuse the :link and :visited pseudo-classes to determine which sites a user has visited without the user’s consent.
UAs may therefore treat all links as unvisited links, or implement other measures to preserve the user’s privacy while rendering visited and unvisited links differently.
Related specificationsMicrosoft Developer Network: [Windows Internet Explorer API reference Article]
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