: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

Desktop
Google Chrome
No
Mozilla Firefox
No
Safari
No
Opera Browser
No
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 */
}

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.