visited Pseudo-class

MS Office 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 propertiesInternet Link.

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:
Version data is listed when the mouse hovers over a link, or the link has focus.
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!Internet Link

© 1999 microsoft corporation. all rights reserved. terms of useInternet Link.