Export (0) Print
Expand All

:link Pseudo-class

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

Syntax

HTML [A]:link { sRules }
Scripting N/A

Possible Values

sRules String that specifies one or more Cascading Style Sheets (CSS) attribute/value pairs.

Remarks

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

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

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

Example

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>

Standards Information

This pseudo-class is defined in CSS, Level 1 (CSS1) World Wide Web link.

Applies To

A

Community Additions

Show:
© 2014 Microsoft