WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: can a figure be included within a listitem tag?

for

From: jp Jamous
Date: Aug 25, 2023 1:17PM


As far as HTML is concerned, it is not a violation. We put spans as well as links in list items. That is fine to add an image.

Where it might be an inconvenience to screen readers is if it is not silent. For example, having a role="presentation". Screen readers would want to announce it along with whatever else you want to add into that list item. Just be cautious of that part so the speech is not too verbose, because it would be considered as a decorative image.

-----Original Message-----
From: WebAIM-Forum < <EMAIL REMOVED> > On Behalf Of David Farough
Sent: Friday, August 25, 2023 12:12 PM
To: WebAIM Discussion List < <EMAIL REMOVED> >
Subject: [WebAIM] can a figure be included within a listitem tag?

I have seen a scenario where a process to pair a device is listed.
There was also a figure that showed the Bluetooth setting dialogue from IOS. This might logically have been placed following the second list item.

I was unsure whether it would be invalid to include the figure within the list at it's proper positionor whether to position it following the list tag.

Any thoughts?