WebAIM - Web Accessibility In Mind

E-mail List Archives

Labeling form elements for date

for

From: Sutton, Jed
Date: Jun 25, 2002 12:57PM


In a form in a web page, I have three pull downs, one for month, one for day, and one for year. There is only one label that applies to all three. How can you associate one label to multiple elements? I noticed a thread in the archives regarding doing the same thing for time (e.g., hours and minutes), but no solution was presented.

Can you do this:

<label for="month"><label for="day"><label for="year">Select the date:</label></label><label>