WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Decorative images with captions

for

From: Patrick H. Lauke
Date: Dec 3, 2023 12:39PM


In general: if they've got a caption, then they're not decorative. If
the caption sufficiently describes the image, then give the image an
empty alt and keep the caption (as that then serves the purpose of
providing the alternative for the image).

Otherwise, keep both the alt that described what the image looks
like/contains, and the caption provides more context on what the image
tries to illustrate/show/mean.

P

On 03/12/2023 19:33, Damon van Vessem wrote:
> Greetings,
>
> What's the best approach for images that would normally have alt="" but
> also have an image caption? Hide the caption for screen reader users?
> Example: in an article about a person, a headshot of them, with caption
> "Steve Steverman in 1977."
>
> Thanks,
> Damon
> > > > --
Patrick H. Lauke

https://www.splintered.co.uk/ | https://github.com/patrickhlauke
https://flickr.com/photos/redux/ | https://www.deviantart.com/redux
https://mastodon.social/@patrick_h_lauke | skype: patrick_h_lauke