W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > July to September 2002

Re: Tab Order in Forms

From: Charles McCathieNevile <charles@w3.org>
Date: Fri, 12 Jul 2002 05:04:50 -0400 (EDT)
To: "The Snider's Web" <lsnider@thesnidersweb.com>
cc: RUST Randal <RRust@COVANSYS.com>, <w3c-wai-ig@w3.org>
Message-ID: <Pine.LNX.4.30.0207120502180.32584-100000@tux.w3.org>

No, the input and label don't have to be in the same place. By contrast, I
would suggest that you use fieldset and legend to label the group, rather
than span (which doesn't have any useful semantics beyond what you suggest
for presentation as CSS or add as metadata referring to the element). Then
user agents that implement HTML 4 will be able to group the things for users.



On Thu, 11 Jul 2002, The Snider's Web wrote:

>Hi Randal,
>I am no expert in this field, but doesn't the input line have to come
>before the label line?
>At 12:41 PM 7/11/2002 -0400, you wrote:
>>I'm having a problem with a form I'm putting together.  Basically, I can't
>>use the keyboard to tab to the "No" option.  Does anyone see anything wrong
>>with my markup that might be causing this?
>><span class="label">Do you need child care for your children?</span>
>><label for="childCareYes">Yes</label>
>><input type="radio" id="childCareYes" name="childCare" value="y" />
>><label for="childCareNo">No</label>
>><input type="radio" id="childCareNo" name="childCare" value="n" />
>>Randal Rust
>>Covansys, Inc.
>>Columbus, OH

Charles McCathieNevile    http://www.w3.org/People/Charles  phone: +61 409 134 136
W3C Web Accessibility Initiative     http://www.w3.org/WAI  fax: +33 4 92 38 78 22
Location: 21 Mitchell street FOOTSCRAY Vic 3011, Australia
(or W3C INRIA, Route des Lucioles, BP 93, 06902 Sophia Antipolis Cedex, France)
Received on Friday, 12 July 2002 05:04:59 UTC

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