WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Form Labels

for

From: Jeff Rhodes
Date: Sep 30, 2002 8:06AM


I have handled it by placing a label on each of the select lists. However, so it doesn't
clutter up the screen for the sighted users I have applied a hidden class to the label.

<style>
.hidden {display: none}
</style>

<label for="day" class="hidden">Date Day</label>
<select id="day">....</select>
<label for="month" class="hidden">Date month</label>
<select id="month">....</select>
<label for="year" class="hidden">Date Year</label>
<select id="year">....</select>

If anyone else has a better idea, I'm open to suggestions.

On 30 Sep 2002 at 10:50, Ali Naito wrote:

> Hi everyone,
>
> How do I tackle form labels on a date field. Example:
> http://www.bila.net/bowl/testform.html Can I use the same ID for all three
> menus? Do I have to split it up into three elements?
>
> - Ali Naito
>
>
> ----
> To subscribe, unsubscribe, or view list archives,
> visit http://www.webaim.org/discussion/
>
>


Jeff Rhodes, Developer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Internet Association Corporation
www.iaccorp.com
voice: (330) 376-6006 x255
fax: (330) 376-3355
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Thought for the day:
-What is a "free" gift ? Aren't all gifts free?



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