WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Alt Text on Graphic Links


From: Jeremy Echols
Date: Apr 28, 2020 8:42AM

Playing devil's advocate for a moment, devs are as imperfect as anybody else, and this may have been a quick response that wasn't worded carefully. And to Glen's point, I often simplify things when talking to non-devs by saying there's "no alt attribute" despite setting it to a blank value.

Reading the response, I think more context is needed to say whether it's a failure, because it kind of sounds like the dev might be describing a situation where there is text in the link, and the graphic is just one piece of the link. I don't think anybody here can really say much about the situation without more context.

The critical question isn't "does the image have a good alt attribute?" The question that matters is "does the link have an accessible label?" That can be satisfied with an image that has an empty alt attribute so long as the "a" element has more in it than just the image.

-----Original Message-----
From: WebAIM-Forum < <EMAIL REMOVED> > On Behalf Of Patrick H. Lauke
Sent: Monday, April 27, 2020 14:51
Subject: Re: [WebAIM] Alt Text on Graphic Links

Without anything else (a title, aria-label, or similar on the link at least), this fails 1.1.1 for the image lacking a text alternative, and the link fails both 2.4.4 for lacking any kind of link text and 4.1.2 for lacking an accessible name.

So no, the developer is talking rubbish. And if the developer seriously mentions "alt tag" that's a good canary in the coalmine for them not knowing much of anything.

Patrick H. Lauke

https://urldefense.com/v3/__https://www.splintered.co.uk/__;!!C5qS4YX3!QWcliVkUTIPQaJ1sQA-Aicq1S2PHwbpQad7atwvnmjAGfQYF4sQuCSNtsDvN7dccvg$ | https://urldefense.com/v3/__https://github.com/patrickhlauke__;!!C5qS4YX3!QWcliVkUTIPQaJ1sQA-Aicq1S2PHwbpQad7atwvnmjAGfQYF4sQuCSNtsDsEJ5PaLw$
https://urldefense.com/v3/__https://flickr.com/photos/redux/__;!!C5qS4YX3!QWcliVkUTIPQaJ1sQA-Aicq1S2PHwbpQad7atwvnmjAGfQYF4sQuCSNtsDupVrZgFw$ | https://urldefense.com/v3/__https://www.deviantart.com/redux__;!!C5qS4YX3!QWcliVkUTIPQaJ1sQA-Aicq1S2PHwbpQad7atwvnmjAGfQYF4sQuCSNtsDuRg0a9Ww$
twitter: @patrick_h_lauke | skype: patrick_h_lauke