WebAIM - Web Accessibility In Mind

E-mail List Archives

labeling form elements for time


From: Mary Utt
Date: Apr 17, 2002 2:00PM

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/