W3C home > Mailing lists > Public > w3c-wai-gl@w3.org > October to December 2003

Re: HTML techniques - labelling form controls (no blocker)

From: Charles McCathieNevile <charles@w3.org>
Date: Sat, 1 Nov 2003 16:19:19 -0500 (EST)
To: "Yvette P. Hoitink" <y.p.hoitink@heritas.nl>
Cc: w3c-wai-gl@w3.org
Message-ID: <Pine.LNX.4.55.0311011616560.19658@homer.w3.org>

I think it would make more sense to keep them the same for single controls
like textareas. It is a good practice for many controls, although for radio
buttons the situation is slightly different, since each button in a group has
the same name but MUST have a different id to be valid.

I do agree that it is important to note clearly what the code actually means.

cheers

Chaals

On Fri, 31 Oct 2003, Yvette P. Hoitink wrote:

>
>In the HTML techniques document, there is a technique called labeling form
>controls:
><http://www.w3.org/WAI/GL/WCAG20/WD-WCAG20-HTML-TECHS-20031020.html#label>
>
>This technique explicitely associates labels with their form elements using
>the for attribute. However, in the example, both the name and the id of the
>form control are the same, which makes it impossible for a reader to see
>which of the two attributes the for-attribute refers to. Perhaps the name of
>the form element can be changed to something different to it's clear that
>the for-attribute of the label refers to the id-element of the form control.
>I think it would be best to explain this in text as well ("The value of the
>for-attribute must be the same as the id of the form element the label
>refers to" or something like that).
>
>
>Yvette Hoitink
>CEO Heritas, Enschede, The Netherlands
>

Charles McCathieNevile  http://www.w3.org/People/Charles  tel: +61 409 134 136
SWAD-E http://www.w3.org/2001/sw/Europe         fax(france): +33 4 92 38 78 22
 Post:   21 Mitchell street, FOOTSCRAY Vic 3011, Australia    or
 W3C, 2004 Route des Lucioles, 06902 Sophia Antipolis Cedex, France
Received on Saturday, 1 November 2003 16:25:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:47:26 GMT