WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: valid code for LABEL?

for

From: Patrick H. Lauke
Date: May 2, 2005 2:21PM


Patrick H. Lauke wrote:

> What's wrong with the following?
>
> <TD vAlign="middle" align="right">
> <LABEL for="TextEmail">Email</LABEL>
> </TD>
>
> <TD>
> <input name="TextEmail" id="TextEmail" type="text"
> class="portalsearch" maxlength="50" size="14" />
> </TD>
>

Additionally, if you are using XHTML (as the self-closing input element seems to suggest), you need to convert all your tags to lowercase...

--
Patrick H. Lauke
_____________________________________________________
re