W3C home > Mailing lists > Public > www-validator@w3.org > May 2002

Re: LABEL tag with "for" attribute not validated

From: Andrew McFarland <andrew.mcfarland@unite.net>
Date: Mon, 20 May 2002 09:11:22 +0100
Message-Id: <5.1.0.14.0.20020520090749.009fcb00@127.0.0.1>
To: <www-validator@w3.org>
At 19:26 14/05/2002 -0400, Sorin Lazareanu wrote:
>       <LABEL for="test">Test</LABEL>
>       <INPUT type="text" name="test">

Should be

       <LABEL for="test">Test</LABEL>
       <INPUT type="text" id="test">

The INPUT needs the id attribute not the name attribute.

See http://www.w3.org/TR/html4/interact/forms.html#adef-for and 
http://delivery.unite.net/temp/for.html

Cool error message though :-)

Andrew

--
Andrew McFarland
UNITE Solutions
http://www.unite.net/
Received on Monday, 20 May 2002 04:13:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:03 GMT