W3C home > Mailing lists > Public > www-html@w3.org > April 2008

Re: Radio and checkbox texts

From: Tina Holmboe <tina@greytower.net>
Date: Thu, 24 Apr 2008 10:20:24 +0200
To: "Anas R." <anas.linuxfuture@gmail.com>
Cc: w3-html <www-html@w3.org>
Message-ID: <20080424082024.GR26474@greytower.net>

On Thu, Apr 24, 2008 at 11:13:06AM +0200, Anas R. wrote:

> My theory is something like this:
> 
> <label>Gender:</label>						<input name="gender" value="male" type="radio">Male</input>
> 															<input name="gender" value="female" type="radio">Female</input>
> 
> - Does "for" attribute in 'label' tag perform any real function? I don't think so!

  It explicitly associate a label with a form control. In your example above there
  is no such association, and hence a UA could do nothing to pair them up.

-- 
 -  Tina Holmboe      Developer's Archive           Greytower Technologies
                   http://www.dev-archive.net      http://www.greytower.net    
Received on Thursday, 24 April 2008 08:20:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:16:13 GMT