WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: for and id in label and input

for

From: Trafford, Logan
Date: Aug 12, 2016 10:07AM


The following is copied from achecker's documentation (input type of text). Step 3 indicates that achecker is making the correct association.

Steps To Check

Procedure
1. Check all input elements that have a type attribute value of "text".
2. The input element must have an explicitly associated label using one or more of the following methods.
3. The input element has an id attribute value that matches the for attribute value of a label element.
4. and/or
5. The input element has a title attribute.
6. and/or
7. The input element is contained by a label element.
8. Check if the label text describes the purpose or function of the control.