WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Using CSS to hide a portion of the link text

for

From: Dan Conley
Date: Aug 3, 2009 7:00AM


Well, if the text is auto generated it would always be kept up to date,
wouldn't it? I think I might switch some of my table of contents code to
use this, as there are quite a lot of (PDF) links after the titles, and
I could add in <span>$title</span> easily enough.

Also, the W3C example uses dl/dd. Isn't that a poor use of the field,
since you're not giving a definition?

Dan Conley

Simius Puer wrote:
> Agreed - the method described by by the W3C is technically solid.
>
> The only potential pitfall (as they point out themselves) is an editorial
> one, ensuring that the hidden text is not overly verbose. I'd also add
> emphasis on ensuring it is 'accurate' and 'kept up-to-date' as these are
> easily missed unless the site editors are trained to check these (or if your
> CMS enforces some manual checking).
>
>
> Andrew Hart
>
>
> 2009/8/3 Evans, Donald (Contractor) < <EMAIL REMOVED> >
>
>> Almost any page that uses the same link text many times could make use of
>> hidden link text to describe them.
>>
>> Example: An ecommerce site that has a dozen products listed, each with a
>> link next to the product's picture that says, "Buy". Adding CSS hidden text
>> to the Buy link makes each link distinct.
>>
>>
>>
>>