CSS Selector Level 4 » Hyperlink pseudo-class

This hyperlink action pseudo-class will match elements that acts as the source anchors of hyperlinks. It acts as an alias for :link and :visited.

Syntax

Copy
:any-link {
    /* declarations */
}

Example

Copy
:any-link {
    background-color: blue;
}

When the link acts as source anchor it will get a blue background in this example.

Try example in CodePen

Browser support

Platform Chrome Firefox Safari Edge Internet Explorer Opera
Desktop No Yes (50) No No No No
Mobile No Yes (50) No No No No

Usage statistics (Alexa Top 1,250,000 sites)


Please wait a moment, the comments start loading now...
explorermozillachromesafariopera