Click to return to the DHTML, HTML     
line-height Attribute | l...     LINK Attribute | link Pro...     DHTML Properties    
Web Workshop  |  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 Properties.

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:
A

See Also

hover, visited



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.