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.


<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 H. Lauke
Webmaster / University of Salford
Received on Tuesday, 17 June 2003 06:19:12 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:36:16 UTC