link Pseudo-class

DHTML, HTML, & CSS

link Pseudo-class


Sets or retrieves the style of the <A> element for the default state of the link.

Syntax

HTML[A]:link { attribute1:parameter1 [; attribute2:parameter2 [; . . .]] }
ScriptingN/A

Possible Values

attributeAny attribute applicable to text.
parameterAny of the range of values available to the corresponding attribute.

The pseudo-class is read/write with a browser-specific default.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see dynamic propertiesInternet Link.

Remarks

The link pseudo-class often is set with specific styles for the other states—active, visited, and hover—of a link.

Internet Explorer 3.0 applies the link pseudo-class value to the visited psuedo-class.

Example

This example uses the link pseudo-class.

Sample Code

<STYLE>
    A:link{ color: #FF0000 }        // unvisited link
    A:visited { color: #CFCFCF }    // visited links
</STYLE>

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
Version data is listed when the mouse hovers over a link, or the link has focus.
A

See Also

hover, visited


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? write us!Internet Link

© 1999 microsoft corporation. all rights reserved. terms of useInternet Link.