visited Pseudo-class
Sets the style of the anchor for previously visited links.
Syntax
HTML [A]:visited { attribute1:parameter1 [; attribute2:parameter2 [; . . .]] } Scripting N/A
Possible Values
attribute Any attribute applicable to text. parameter Any of the range of values available to the corresponding attribute. The default value is browser-specific.
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 visited pseudo-class often is used with the active, link, and hover pseudo-elements to define the various states of a link.
Using pseudo-classes on elements other than the A element has no effect.
Example
This example sets unvisited links to red and visited links to blue, and uses a colon (:) to specify a pseudo-class.
Sample Code
:link { color: red } // unvisited link :visited { color: blue } // visited links
Applies To
[ Object Name ] Platform Version Win16: Win32: Mac: Unix: WinCE: Version data is listed when the mouse hovers over a link, or the link has focus.
HTML A Scripting N/A
See Also
Did you find this topic useful? Suggestions for other topics? write us!
© 1999 microsoft corporation. all rights reserved. terms of use.