W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > April to June 2003

RE: Forms

From: Lauke PH <P.H.Lauke@salford.ac.uk>
Date: Tue, 17 Jun 2003 11:18:03 +0100
Message-ID: <3A1D23A330416E4FADC5B6C08CC252B978764C@misnts6.mis.salford.ac.uk>
To: <w3c-wai-ig@w3.org>

> Am I correct in thinking that the <label> == <id>?  Or is it 
> actually the same 
> as <name>: I have always set "name" and "id" as the same 
> thing.

You don't always do it, though...an example would be radio buttons,
which need to have the same name to effectively be mutually exclusive,
but need a separate ID for the "uniqueness" aspect of it.

e.g.:

<input name="question1" id="question1chicken" type="radio"
value="chicken" /><label for="question1chicken">chicken</label>

<input name="question1" id="question1egg" type="radio"
value="egg" /><label for="question1egg">egg</label>

Patrick
________________________________
Patrick H. Lauke
Webmaster / University of Salford
http://www.salford.ac.uk
Received on Tuesday, 17 June 2003 06:19:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 19 July 2011 18:14:10 GMT