WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Section 508 - Form Field Label

for

From: Jason Megginson
Date: Nov 12, 2010 8:21AM


No, there is no explicit association between the label and the checkbox. I
assume the asterisk is a required field? If so, include that in explicit
label markup. An id attribute must be set in the checkbox. That "id"
attribute must match the "for" attribute of the corresponding LABEL tag.

For Example:
<div *title='CBP'>*
*<input type='checkbox' igchk='1' id="someID" class='igt_align'><label
for="someID">*<span igtxt='1' class="
">CBP</span></label></div>



Jason Megginson
SSB BART Group
(O):703-637-8964
(C):703-244-7755


-----Original Message-----
From: <EMAIL REMOVED>
[mailto: <EMAIL REMOVED> ] On Behalf Of Barry Johnson
Sent: Friday, November 12, 2010 9:59 AM
To: <EMAIL REMOVED>
Subject: [WebAIM] Section 508 - Form Field Label

Below is (simplified) code where TITLE is an attribute of a DIV that
contains a form field. Is this an acceptable way to label a form field
for
Section 508 Compliance?



<div *title='CBP'>*

*<input type='checkbox' igchk='1' class='igt_align'>*<span igtxt='1'
class="
">CBP</span></div>