WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Investigating the proposed altattributerecommendations in HTML 5

for

From: Steve Faulkner
Date: Aug 30, 2007 11:10AM


Hi Andrew,

>Steve's page is mostly highlighting what happens if you don't use the
>alt attribute when it is needed, and there are known problems for users.
>This isn't really the point, since alt is still allowed on images.

yes, but these are the sites cited as containing images that should have the
alt omitted.

>All I want
>to point out is that there is nothing inherently wrong about having it
>not be. <img src="spacer.gif" alt="" /> is identical to <img
>src="spacer.gif" /> semantically. Either way

This is not what the current version of the spec is advocating, in the case
of spacer images the spec states:

"The img<http://www.whatwg.org/specs/web-apps/current-work/multipage/section-embedded.html#img>;must
not be used as a layout tool. In particular,
img<http://www.whatwg.org/specs/web-apps/current-work/multipage/section-embedded.html#img>;elements
should not be used to display fully transparent images, as they
rarely convey meaning and rarely add anything useful to the document. "

In the case of decorative images its states:

"A purely decorative image that doesn't add any information but is still
specific to the surrounding content

In some cases, the image isn't discussed by the surrounding text, but it has
some relevance. Such images are decorative, but still form part of the
content. In these cases, *the
alt<http://www.whatwg.org/specs/web-apps/current-work/multipage/section-embedded.html#alt>;attribute
must be present but its value must be the empty string
*."
in regards to the omission of the alt:

"*When the alt<http://www.whatwg.org/specs/web-apps/current-work/multipage/section-embedded.html#alt>;attribute
is missing, the image represents a key part of the content
*. Non-visual user agents should apply image analysis heuristics to help the
user make sense of the image."


HTML 5 draft specification [
http://www.whatwg.org/specs/web-apps/current-work/multipage/section-embedded.html#the-img
]

On 30/08/2007, Andrew Kirkpatrick < <EMAIL REMOVED> > wrote:
>
> > > I think that your page highlights why
> > > it is necessary to use the alt attribute on images, but it doesn't
> > > address what the downside of not requiring the alt
> > attribute for all
> > > images.
> >
> > Can you expound on that Andrew?
>
> The basic idea that is being advocated in HTML5 is that alt should be
> used when it is needed. If alt has a null value, then it isn't really
> needed, so could be omitted. There are lots of attributes that function
> in this way, and I'm arguing that since there isn't additional value in
> requiring alt for images that don't need it, alt can be treated this way
> without adverse affects.
>
> Steve's page is mostly highlighting what happens if you don't use the
> alt attribute when it is needed, and there are known problems for users.
> This isn't really the point, since alt is still allowed on images.
>
> Requiring alt on all images would mean that pages (assuming that they
> are valid) containing images would have alt attributes, but nothing to
> ensure that the alt attributes have values or useful values.
>
> > To me, it puts it in the realm of that "relying on the user
> > to understand and make the right choice" problem which exists
> > in much of the accessibility world. Those of us that do lots
>
> Do you think that we're not not now in that realm anyway?
>
> > ludicrous. But I see it every day. Every. Day.
>
> I'm not exactly cloistered away on the WebAIM list all day... :)
>
> I don't have a real objection to alt being required or not. All I want
> to point out is that there is nothing inherently wrong about having it
> not be. <img src="spacer.gif" alt="" /> is identical to <img
> src="spacer.gif" /> semantically. Either way, Dreamweaver will still
> prompt for alt when you insert an image, but you are correct that people
> who only find out about accessibility is by validating their site will
> lose an opportunity to educate themseleves. On the other hand, we won't
> have any one doing a find and replace for '<img' and replacing it with
> '<img alt=""' to get by the validator. If a page has no alt values,
> then it is laid bare that they haven't attended to accessibility (unless
> they ONLY use spacer images).
>
> Images are probably less of an issue than form labels. Should we
> require the id attribute on inputs and the for attribute on label
> elements? Require the caption element inside tables? People developing
> for the web need to learn how to code properly or use tools that
> encourage it, but I just don't think that making alt not required is a
> problem.
>
> AWK
>
>
>