Skip to main content
:link pseudo-class

Sets the style of an a element when the link has not been visited recently.

CSS 2.1, Section 5.11.2



selector:link {...}



A CSS simple selector.

Standards information


The :link pseudo-class is often used with :active, :hover and :visited, the pseudo-classes that affect the other states of a link.

The default value of the :link pseudo-class is browser-specific. The time period used to define a recent visit also varies by browser.

Microsoft Internet Explorer 3.0 applies the value of the :link pseudo-class to the :visited pseudo-class.


The following style rule uses the :link pseudo-class to set the default color attribute of a link in a document.

    A:link { color:#FF0000 }