WebAIM - Web Accessibility In Mind

E-mail List Archives

Figures, ALT text and lightboxes

for

From: Bernard de Broglio
Date: Feb 6, 2016 6:34PM


Hello all,

We're using FIGURE with FIGCAPTION to provide an image and a description of the image + photographer credit.

WebAIM's excellent article Alternative Text suggests that no ALT is necessary, the FIGCAPTION does the work.

But we show ALT="" in the IMG tag.

The same article also says that an image with an anchor must never have a missing or null ALT attribute.

We don't use the ANCHOR element but we do use a DATA-URL attribute in the FIGURE tag.

My question: is this good?

<figure data-url="URL">
<p><img src="IMAGE_URL" alt="" /></p>
<figcaption>
<p>CAPTION</p>
</figcaption>
</figure>

Thanks for your consideration.


Bernard de Broglio
Web Manager
Media & Communications


<http://www.cityofsydney.nsw.gov.au>;[http://cdn.cityofsydney.nsw.gov.au.s3.amazonaws.com/2030/Graphics/cityofsydney.png]

____
Telephone: 9246 7601
cityofsydney.nsw.gov.au<http://www.cityofsydney.nsw.gov.au>;



This email and any files transmitted with it are intended solely for the use of the addressee(s) and may contain information that is confidential or subject to legal privilege. If you receive this email and you are not the addressee (or responsible for delivery of the email to the addressee), please note that any copying, distribution or use of this email is prohibited and as such, please disregard the contents of the email, delete the email and notify the sender immediately.