WebAIM - Web Accessibility In Mind

E-mail List Archives

RE: Site evaluation

for

From: julian.rickards@ndm.gov.on.ca
Date: Feb 13, 2004 7:24AM


There is a bit of a problem with your form code here. You correctly use for
in the <label> tag but the for="name" must be the same as the id="name" in
the <input> tag. In your snippet below, you have for="Name" and
id="cadName".

It also appears that you are using XHTML because of the /> at the end of
<input />. Starting with XHTML 1.0, the name attribute has been deprecated
in favour of the id attribute. It is commonly recommeded that you use both
for older browser support so they should be the same: name="x" id="x".

HTH,

Jules

---------------------------------------------------------
Julian Rickards
Digital Publications Distribution Coordinator
Publications Services Section
Ontario Ministry of Northern Development and Mines
Phone: (705) 670-5608
Fax: (705) 670-5690


> -----Original Message-----
> From: Rodrigo Paiva [mailto: <EMAIL REMOVED> ]

> <form method="post" action="processar.asp">
> <label for="Name" class="hide">Name:</label><input type="text"
> name="name" value="Insert your name" id="cadName" class="formCadInput"
> tabindex="1" onFocus="select();" />
> <input type="image" src="busca.gif" alt="Submit" name="send" />
> </form>


----
To subscribe, unsubscribe, suspend, or view list archives,
visit http://www.webaim.org/discussion/