The :any-link pseudo-class matches elements if they match :link or :visited.


The pseudo-class :any-link is an element that acts as the initial anchor of a hyperlink, whether or not it has been visited. In other words, it matches all <a><area>, and <link> elements that have attributes href. It also matches all elements that use :link or :visited.


/* Selects any element that will match :link or :visited */

:any-link {
   color: orange;


External link
Internal link
Placeholder link (doesn’t get styled)