Projects Blog

Accessibility in inline SVGs

SVG (Scalable Vector Graphic) is one of the preferred formats for displaying graphic content on the web currently. Also, using them inline has been progressively more popular than using the img tag.

So let’s talk about making it accessible and put aside the misconceptions.

Accessibility basics

Accessibility doesn’t mean adding ARIA (set of roles and attributes that make the web content more accessible) to everything. Virtue is in the right measure:

Accessibility in graphics

To decide what ARIA we should add, we are going to answer several questions:

Conclusion

Keep it simple, don’t try to reinvent the wheel. SVGs are graphic content, so treat them as images.


I hope you found this article useful.

Happy coding! 🚀