CSS :any-link
The :any-link CSS pseudo-class matches any element that acts as the source anchor for a hyperlink. This includes <a> elements with an href attribute, as well as other elements that can be activated as hyperlinks using the keyboard or mouse.
Let's see how we can use the :any-link pseudo-class in our CSS styles. Below is an example:
:any-link {
color: blue;
text-decoration: underline;
}
In the example above, the :any-link pseudo-class is used to style hyperlinks on a webpage. When this CSS is applied, any element that functions as a link will have its text color set to blue and will be underlined.