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
HTML A Scripting N/A
See Also