
👏 Shout out to the folks that fixed the Safari/WebKit bug! However, if the majority of the users are still on older versions of Safari or iOS, we need to add role="img" to the. If the site’s users are on latest version (Safari Desktop Version 9.1.1 or iOS Version 9.3.2) or newer we can stop here. Let’s check our browser usage stats to see if we need to do anything further. See the Pen SVG as img src by Heather Migliorisi ( on CodePen.

What is the most appropriate alternative text for the graphic when it needs an alt attribute (see example 4 for more information)? Depending on the content of the image, it can handled differently:

If there text/content surrounding the graphic that provides the alternative text, it does not need additional additional alt text. What is the context of the graphic and the text surrounding it?

If a graphic is purely decorative, it does not need to have alternative text.Īll tags need the alt attribute to be valid, but the attribute can be left empty (no space) and still validate. Does the graphic in question need alternative text? Are you abandoning the icon font or replacing old pg, gif and png graphics for the well-supported SVG, too? Let’s see how this will impact users of assistive technology (AT) and what is needed in order to ensure a great user experience for everyone.īefore getting started with accessible SVGs, a few quick things to consider regarding graphics, accessibility and alternative text. Scalable Vector Graphic (SVG) is emerging as the preferred graphic format to use on the web today.
