Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All


Sets the style of an a element when the link has been visited recently.


[a]:visited { sRules }

Possible values


String that specifies one or more cascading style sheet attribute/value pairs.


The default value of the :visited pseudo-class is browser-specific. The time period used to define a recent visit also varies by browser.

The :visited pseudo-class is most often used with :active, :hover and, :link, the pseudo-classes that affect the other states of a link.


The following style rule uses the :visited pseudo-class to set the color property of visited links in a document:

    a:visited {color:blue} 

Standards information

This pseudo-class is defined in Cascading Style Sheets (CSS), Level 1 (CSS1) Ee371261.xtlink_newWindow(en-us,Expression.40).png.

Applies to


See also

Send feedback about this topic to Microsoft. © 2011 Microsoft Corporation. All rights reserved.

Community Additions

© 2015 Microsoft