WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Alts for text links

for

From: L Snider
Date: Mar 26, 2018 10:29AM


Hi Glen,

Thanks. Aria would have worked great, but wasn't used there. The link has
very good descriptive text (in all three cases), so that is why it was
weird. This must be a plug in likely for Drupal, as the code was almost the
same in each case.

Cheers

Lisa

On Mon, Mar 26, 2018 at 11:21 AM, glen walker < <EMAIL REMOVED> > wrote:

> If you want an attribute that is similar to the alt attribute but valid for
> links, then aria-label or aria-describedby could be used. But as Jared
> said, alt itself is not valid.
>
> If your link doesn't have any text, then you could use aria-label. For
> example:
>
> <a href="...some path..." aria-label="register now"><i
> class="myRegisterNowIcon"></a>
>
> If your link has text but you need additional text, then you could use
> aria-describedby. For example:
>
> <h3 id="myid">Survey Results</h3>
> ...
> <a href="...some path..." aria-describedby="myid">Read more</a>
>
>
>
>
> On Mon, Mar 26, 2018 at 10:07 AM, Jared Smith < <EMAIL REMOVED> > wrote:
>
> > You mean alt on the <a> element? This would not be proper HTML and will
> do
> > nothing for accessibility.
> >
> > Jared
> > > > > > > > > >
> > > > >