WebAIM - Web Accessibility In Mind

E-mail List Archives

alt or alt=""


From: glen walker
Date: Aug 30, 2019 5:29PM

I've always recommended specifying alt="" for decorative images and am not
sure why I didn't think of this earlier but specifying alt without any
value is essentially the same thing. It's valid html syntax and has the
same effect with hiding the image from screen readers.

Seems like a simple thing but does anyone know why we shouldn't use alt by
itself with no value? From an html spec perspective, they're the same

It's three less characters to type so my lazy developer side likes it.