E-mail List Archives
Re: Alts for text links
From: glen walker
Date: Mar 26, 2018 10:21AM
- Next message: Kakarla Meharoon: "Access Keys"
- Previous message: L Snider: "Re: Alts for text links"
- Next message in Thread: L Snider: "Re: Alts for text links"
- Previous message in Thread: L Snider: "Re: Alts for text links"
- View all messages in this Thread
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
> > > > >
- Next message: Kakarla Meharoon: "Access Keys"
- Previous message: L Snider: "Re: Alts for text links"
- Next message in Thread: L Snider: "Re: Alts for text links"
- Previous message in Thread: L Snider: "Re: Alts for text links"
- View all messages in this Thread