linklink*
*



Contents  *



Index  *Topic Contents
*Previous Topic: line-height
*Next Topic: list-style

link

Description

Sets the style of the anchor (A) elements for the link's default (unvisited) state.

Remarks

The link attribute takes effect when the link has not been visited and it is not actively being navigated or has a mouse positioned over it. Setting the hover pseudo-class is often used in conjunction with setting specific styles for the other states of a link: active, visited, and hover. Note the syntax in the example below uses a colon (:) to specify a pseudo-class.

Example

The following example sets unvisited links to red and visited links to blue.

A:link   { color: red }           /* unvisited link */
A:visited  { color: blue }       /* visited links */

Applies To

A

See Also

active, hover, visited


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.