E-mail List Archives

RE: labeling form elements for time

for

From: Jim Thatcher
Date: Apr 17, 2002 7:04PM


Mary,

Use the title attribute. It is supported by the major screen readers and
HPR.

This is one of the situations where title is almost required because the
label text doesn't work, like two fields for zip+4 and three for a telephone
number.

This and many other tips in the new book "Constructing Accessible Web
Sites," now available from Amazon:
http://www.amazon.com/exec/obidos/ASIN/1904151000/jimthatcherco-20/!
I recommend it. Authors include myself and WebAIM's own Paul Bohman.

Jim
Accessibility Consulting
http://jimthatcher.com
512-306-0931


-----Original Message-----
From: Mary Utt [mailto: <EMAIL REMOVED> ]
Sent: Wednesday, April 17, 2002 3:58 PM
To: <EMAIL REMOVED>
Cc: Moi
Subject: labeling form elements for time


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/


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