WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Alt Text on Graphic Links

for

From: Jonathan Avila
Date: Apr 27, 2020 6:35PM


Hi, it sounds like you are asking if the inline image inside a link is decorative does the image need alt text. The image doesn't need alt text but I'd say you would want to still mark the image as decorative (e.g. alt="", role presentation) -- even though it's not needed it would be important to mark it as decorative to avoid any confusion. This might be different for different constructs -- for example, I'd read the SVG accessiblity mappings document and it seems to indicate that for an SVG as a child of an element like a link or button the SVG could automatically be treated as decorative without a role presentation -- but have not seen such as claim for inline images.

Jonathan