CSS Almanac

Home » CSS Almanac » Selectors » V » :visited

:visited

:visited is a pseudo class selector used for anchor link elements that matches when the href attribute of that anchor link has been visited in the past by this browser. It is meant to be useful feedback for a user, so they can tell the difference between links they have been to and links they have not.

Security

There have been some security concerns about :visited, namely that a malicious website could have links to tons and tons of websites and have :visited styling, then test the visual style of the links with JavaScript and report back to a server which of these sites the user has visited. This violates the privacy of the user, as they would have no idea this is being done. As a result, many browser restrict what styling can be done to :visited links and what styling information can be reported.... need more info.

http://hacks.mozilla.org/2010/03/privacy-related-changes-coming-to-css-vistited/

https://bugzilla.mozilla.org/show_bug.cgi?id=147777#c160

http://tinkerbin.com/x8pUuaaS

Related: active/link/hover

Browser Support

Chrome Safari Firefox Opera IE Android iOS
TBD TBD TBD TBD TBD TBD TBD

Speak, my friend

At this moment, you have an awesome opportunity* to be the person your mother always wanted you to be: kind, helpful, and smart. Do that, and we'll give you a big ol' gold star for the day (literally).

Posting tips:
  • You can use basic HTML
  • When posting code, please turn all
    < characters into &lt;
  • If the code is multi-line, use
    <pre><code></code></pre>
Thank you,
~ The Management ~