WebAIM - Web Accessibility In Mind

E-mail List Archives

RE: Problem Getting 508 Validation with "label"

for

From: Patrick H. Lauke
Date: Apr 29, 2005 8:28AM


>Michael Pastore


>> I have been working to get my website valid with 508. A problem with
>> "label" requirement is the last detail that is holding me back.



>> http://www.youthtopia.com


Currently, "categories" is defined as label for the GO submit button, when it should really be the label for the SELECT. Submit buttons don't need labels, as their value acts as a label already. Assign the id of "categs" to the SELECT, and you should be fine, i.e. change

<select name="cat" class="postform">
...
</select>

<input id="categs" name="submit" title="submit" value="GO" type="submit">

to

<select name="cat" id="categs" class="postform">
...
</select>

<input name="submit" title="submit" value="GO" type="submit" />

(also note that, if you are using XHTML, input and all other "one off" elements needs to be self-closing)


Patrick
________________________________
Patrick H. Lauke
Webmaster / University of Salford
http://www.salford.ac.uk