WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: form label question

for

From: Sawang Srisom
Date: Aug 9, 2007 8:00PM


Dear all,

No matter what we are saying, I insist that LABEL is very important--not
only for blind users but also sighted ones. The point is that it just tells
us what to fill in. Please keep it simple! Don't make it complicated!
Below is the sample of how to handle with radio buttons and labels:

<p>
<label for="gender1 gender2">Gender</label>
<input type="radio" name="gender" id="gender1" value="Male"
checked="checked" /> Male<br />
<input type="radio" name="gender" id="gender2" value="Female"
checked="checked" /> Female
</p>

I'm not so sure if this sample is syntactically correct, but there is no
error returned when I validate the page with this code.

Sawang Srisom