: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

 

Syntax

selector:link {...}

Parameters

selector

A CSS simple selector.

Standards information

Remarks

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.

Examples

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


<style>
    A:link { color:#FF0000 }
</style>

 

 

Show:
© 2014 Microsoft