Contents Index Topic Contents | ||
Previous Topic: visibility Next Topic: width |
visited
Description
Sets the style of anchor (A) elements for previously visited links.
Remarks
The visited pseudo-class is often used in conjunction with others to define the various states of a link: active, link, and hover.
When the mouse is over a hyperlink to which the visited style has been applied, the hover pseudo-class takes precendence.
Using pseudo-classes on elements other than the A element has no effect.
Example
The following code sets unvisited links to red and visited links to blue. The example below uses a colon (:) to specify a pseudo-class.
A:link { color: red } /* unvisited link */ A:visited { color: blue } /* visited links */Applies To
See Also
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.