First, for points to an id, not a name. id and name don't have to be the same. In fact, in the case of a radio button group, they have to be different:
HTML Code:
<fieldset>
<legend>Sex</legend>
<input id="sex-male" type="radio" name="sex" value="male">
<label for="sex-male">Male</label>
<input id="sex-female" type="radio" name="sex" value="female">
<label for="sex-female">Female</label>
</fieldset>
You could use implicit labels, although IE6 users won't be able to click the label:
HTML Code:
<fieldset>
<legend>Sex</legend>
<label><input type="radio" name="sex" value="male"> Male</label>
<label><input type="radio" name="sex" value="female"> Female</label>
</fieldset>
Screen readers will, according to some testing, read labels even if they are hidden. You could use the title="" attribute instead of a label, since screen readers will fall back to the title attribute if there is no label, AFAIK.
HTML Code:
<select name="start_minute" title="Start minute">
<option>00</option>
<option>05</option>
<option>10</option>
...etc
</select>
(Note that value defaults to the contents of the option.)
Bookmarks