WebAIM - Web Accessibility In Mind

E-mail List Archives

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

for

From: Kynn Bartlett
Date: Apr 12, 2006 1:40AM


On 4/12/06, Tim Beadle < <EMAIL REMOVED> > wrote:
> 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 [content generation]

Alternately, something like this:

<a href="url">link text<span class="vnote">visited</span></a>

And these CSS rules:

a:link .vnote { display: none; }
a:visited .vnote { display: inline; }

This should work with most assistive technologies and all modern
browsers that support CSS. It won't work for lynx, though.

--Kynn

--
Kynn Bartlett < <EMAIL REMOVED> >
Writer, Web Developer, Photographer, Game Designer
Tucson, Arizona
http://kynn.com