WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: alt text not clear!

for

From: Karl Brown
Date: Feb 10, 2017 2:14AM


Hi Karthik,

With alternative text a lot depends on the *purpose* of the non-text
content. Without knowing the pages you're testing it's hard to give a clear
100% response.

For example, if the image is the only content within a link, it needs to
have an alt attribute that says where the user's going. If it's going to a
page that talks about wind farms, "Wind farms" would work. If it was on an
e-commerce site and the image had text on it (so non-text content in the
HTML) that said "Half price on selected fragrances", the alt attribute
should match.

Alternative text (which isn't exactly the same as the alt attribute) must
give people the equivalent information (if possible), so having no
alternative text would be fine if the images are purely decorative. If the
images add meaning that the text around it doesn't have then there needs to
be suitable alt text applied (either as the alt attribute, an aria, or in
the body copy).

Looking at the ones you've mentioned, I'd be checking whether "for network
services" was a link to a page (as one example) or if it's part of a
stylized text that hasn't got a web font so's been added to the image
directly.

On Fri, Feb 10, 2017 at 7:29 AM, karthik k < <EMAIL REMOVED> >
wrote:

> Thanks a lot Rakesh and jp
>
> On 2/10/17, JP Jamous < <EMAIL REMOVED> > wrote:
> > It sure is. Even if they used aria-label="Description", it violates the
> fact
> > that an <img> should have a nullified alt tag.
> >
> > Using aria-label in this case is like taking an extra trip through a much
> > longer path. Whereas, alt="Description" goes right through the shortest
> > path. If the image is a decorative image, then alt="" should be present.
> >
> >