:any-link

Hyperlink

The :any-link pseudo-class represents an element that acts as the source anchor of a hyperlink (elements with an href attribute). In other words, any element that would match :link and :visited.

Browser Support (tested using latest versions)

Desktop
Google Chrome
-webkit
Mozilla Firefox
-moz
Safari
Yes
Opera Browser
-webkit
Internet Explorer
No
Mobile
Android Browser
No
Chrome for Android
No
Mozilla Firefox Mobile
No
Safari iOS
No
Opera Mobile
No
IE Mobile
No

Syntax

E:any-link { /* Declarations */ }

/* The following are the browser supported versions of the :any-link pseudo-class. */

E:-webkit-any-link { /* Chrome, Opera */ }
E:-moz-any-link { /* Firefox */ }

Example

/* In the following example, all links within your content will be red without an underline. */

#content a:any-link {
color: red;
text-decoration: none;
}

Information is based on Selectors Level 4 - W3C Working Draft (last updated on May 2, 2013)
Copyright © 2013 W3C® (MIT, ERCIM, Keio, Beihang), All Rights Reserved. W3C liability, trademark and document use rules apply.