WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Is using aria-label to add alternative text - but no alt attribute still a WCAG fail?

for

From: Samantha Radomski
Date: Aug 23, 2024 8:36AM


Yes, you are correct, you will still have a failure if there is no alt text.

[El Paso County Love Logo - Blue L adjacent to Blue El Paso County Seal stacked on top of "VE" to spell the word love.]
Samantha Radomski, A.D.A.C.
Webmaster
El Paso County Communications Department
719.520.6464 (Office) | 719.421.9216 (Cell)
<EMAIL REMOVED> <mailto: <EMAIL REMOVED> >
www.ElPasoCo.com <http://www.elpasoco.com/>;
Schedule A Meeting with Me!<https://outlook.office365.com/bookwithme/user/ <EMAIL REMOVED> ?anonymous&ep=plink>


From: WebAIM-Forum < <EMAIL REMOVED> > On Behalf Of Jim Byrne Accessible Web Design
Sent: Friday, August 23, 2024 3:40 AM
To: WebAIM Discussion List < <EMAIL REMOVED> >
Subject: [WebAIM] Is using aria-label to add alternative text - but no alt attribute still a WCAG fail?

You don't often get email from <EMAIL REMOVED> <mailto: <EMAIL REMOVED> >. Learn why this is important<https://aka.ms/LearnAboutSenderIdentification>
CAUTION: This email originated from outside the El Paso County technology network. Do not click links or open attachments unless you recognize the sender and know the content is safe. Please call IT Customer Support at 520-6355 if you are unsure of the integrity of this message.

Hi,

I’m auditing a website that has many crucial image that do not have alt attributes. However, they all have aria-label. I see W3C says ‘"The alt attribute continues to be the preferred way to provide alternative text for images” - which is bit vague.

In the past having no alt attribute would have been a fail - on the standards validation test alone. But the validation test is deprecated. So - the missing alt attribute no longer a fail?

The ARIA docs say that Aria-label is designed to add additional information. I.e., not the primary information expected via the alt attribute.

I’m assuming that having no alt attribute on an image is still a fail - even if ARIA is used to provide the alternative text - and specifically using aria-label instead of the alt attribute. Am I correct?

Thanks,
Jim





Multi-award-winning WCAG 2.2 AA Accessibility Auditing and Accessibility Consultant

Web: https://jimbyrne.co.uk<https://jimbyrne.co.uk>

Jim Byrne is one of the UK’s most experienced practitioners in the area of accessible digital design.

Jim provided feedback during the development of WCAG 2 (the de facto accessibility guidelines used by governments across the world). He is the author of a number of technical books, training courses and accessibility guides. Jim was a winner of the equal access category of the Global Bangemann Challenge.