W3C home > Mailing lists > Public > public-comments-wcag20@w3.org > July 2009

Re: Alt tags, Title Tags, and 4.1.2

From: David Woolley <forums@david-woolley.me.uk>
Date: Sat, 25 Jul 2009 11:06:56 +0100
Message-ID: <4A6AD940.9080108@david-woolley.me.uk>
To: Chris Reeve <chrisreeve15@yahoo.com>
CC: public-comments-wcag20@w3.org, 508 <508@Access-Board.gov>, w3c-wai-ig@w3.org
Chris Reeve wrote:
> I have a document with an image and an alt tag. See example 2c

I believe you meant to say:  I have a document with an input element 
with a type attribute of "image" and with an alt attribute present.
> http://www.w3.org/TR/2008/NOTE-WCAG20-TECHS-20081211/H91
> Is the title field mandatory as suggested in 2d, 2e, or do I pass with 
> example 2c?

The table nearer the top of the page says alt attribute or title 
attribute, so I would say that neither was mandatory from a WCAG 
standard, but at least one must be present and not empty.

The underlying problem here is that DTDs don't allow you to make the set 
of required attributes for an element depend on the value of one of its 
attributes, so, because there are types of input element that naturally 
provide appropriate name text, input cannot make alt mandatory in the DTD.

(Note there basically two types of tag in HTML: opening and closing. 
img, a, div, etc. are types of element.  type, name, alt, etc. are types 
of attribute.  image is an attribtue value.)

Some of the crossposting may fail.  Cross posting meiling lists is not a 
good idea.

David Woolley
Emails are not formal business letters, whatever businesses may want.
RFC1855 says there should be an address here, but, in a world of spam,
that is no longer good advice, as archive address hiding may not work.
Received on Saturday, 25 July 2009 10:07:39 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:14:51 UTC