WebAIM - Web Accessibility In Mind

E-mail List Archives

Thread: RE: Site evaluation

for

Number of posts in this thread: 1 (In chronological order)

From: julian.rickards@ndm.gov.on.ca
Date: Fri, Feb 13 2004 7:24AM
Subject: RE: Site evaluation
No previous message | No next message

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 ADDRESS 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/