WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: ID and label tags in HTML

for

From: William Lawrence
Date: Oct 19, 2010 11:09AM


> Does anyone know if the HTMOL spec for ID and label for form fields is
> supposed to be case sensitive or not?

Yes, the values in HTML and XHTML elements must be treated as
case-sensitive. The value of the FOR attribute is case-sensitive
(i.e., user agents interpret "a" and "A" differently).

Although the WAVE toolbar from WebAim will not identify this as an
issue to identify, you ought to try writing up a little test for it
and trying out how different browsers will interpret the results.

You can find out more information at
http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.9.1

Cheers!
William
--
William Lawrence
Accessibility Engineer