WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: labeling form elements for time

for

From: Leo Smith
Date: Apr 18, 2002 5:49AM


Is it permissable to include the "time of day" labeling text and both
<select> form controls _within_ the <label> element?

<form>
<label>
Time of Day:
<select><option></option></select>
<select><option></option></select>
</label>
</form>

Leo.


On 17 Apr 2002, at 16:58, Mary Utt wrote:

> I am coding a form that asks the user to enter a time of day.
> We are using two select boxes, one for hours (0-24) and one for
> minutes (:00, :15, :30, :45). They are positioned side by side.
>
> These form elements are logically one item and have one text label
> ("Starting time"). However, the <label></label> tags are intended one
> per form element. I really don't want to provide separate text labels
> for each element ("Hours" and "Minutes" -- this isn't even clear -- it
> sounds like a duration, not a time of day).
>
> Is there a way to label these form elements both logically and
> accessibly? Does putting them in a fieldset do the job?
>
> I am open to alternative suggestions for entering time-of-day data in
> a form.
>
> Thanks very much.
>
> Mary Utt
> SiteScape, Inc.
> Maynard, MA USA
>
>
> ----
> To subscribe, unsubscribe, or view list archives,
> visit http://www.webaim.org/discussion/
>



Leo Smith
Web Designer/Developer
USM Office of Publications and Marketing
University of Southern Maine
207-780-4774


----
To subscribe, unsubscribe, or view list archives,
visit http://www.webaim.org/discussion/