WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: alt or alt=""

for

From: glen walker
Date: Sep 3, 2019 3:57PM


According to html specs, alt and alt="" are exactly the same.

https://www.w3.org/TR/2012/WD-html-markup-20120329/syntax.html#syntax-attr-empty

"And alt> cannot be assured to identify a decorative image if some other
attribute follows the alt attribute"

I don't follow that. Why does it matter if there's another attribute
following alt?


On Tue, Sep 3, 2019 at 3:43 PM Peter Shikli < <EMAIL REMOVED> > wrote:

> As a coder myself, it would be easier to write an if-then-else logic
> statement to find alt="" than just alt since that latter is part of many
> other constructs. And alt> cannot be assured to identify a decorative image
> if some other attribute follows the alt attribute. The net result is that I
> recommend the extra finger workout to type alt="" to make sure a screen
> reader catches it correctly and informs the user about decorative images.
>
> Cheers,
> Peter Shikli
> Access2online
>
>
> > > > >