Click to return to the DHTML, HTML     
visibility Attribute | vi...     VLINK ATTRIBUTE | vLink P...     DHTML Properties    
Web Workshop  |  DHTML, HTML & CSS

visited Pseudo-class


Sets the style of the anchor for previously visited links.

Syntax

HTML[A]:visited { 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 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 ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
HTML A
Scripting N/A

See Also

active, hover, link



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.