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

:any-link {
    /* declarations */

# Example

: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)

Due to an extreme price increase of our statistics provider the data collection was stopped in September 2018.

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