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 Yes (65) Yes (50) Yes (9) Yes (79) No Yes (52)
Mobile Yes (65) Yes (50) Yes (9) Yes (79) No Yes (52)

# 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