WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: How Do I Display The Word Visited On A Link

for

From: Tim Beadle
Date: Apr 12, 2006 1:30AM


On 12/04/06, marvin hunkin < <EMAIL REMOVED> > wrote:
> what is the html code to show the word visited on the link, say for example
> i want the link home to say visited.
> how do i do this in html?

If you're suggesting what I think you're suggesting (explicitly
labelling visited links as "visited"), then you need the following
CSS, which won't work in IE6 and below (not sure about IE7 - I still
haven't seen a definitive answer about Seven's support for generated
content.

Anyway:

a:visited:after {
content: " (visited)";
color: #090;
}

Change (or remove) color as required.

HTH,

Tim