3.3 Input Assistance: Help users avoid and correct mistakes.
Success Criteria 3.3.2 Labels or Instructions (A)
3.3 Input Assistance: Help users avoid and correct mistakes.
Success Criteria 3.3.2 Labels or Instructions (A)
3.3 Input Assistance: Help users avoid and correct mistakes.
Success Criteria 3.3.2 Labels or Instructions (A)
input element.
label may not describe its associated control.
input element.
| Question | Does this label describe its associated control? |
|---|---|
| PASS | label describes its associated control. |
| FAIL | label does not describe its associated control. |
input elements and view their associated label.input element.input element.label does describe its associated input element.
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/xhtml; charset=UTF-8" /> <title>ATRC Testfile - Check #189 - Negative</title> </head> <body> <form action="http://www.test.com" method="post"> <p> <label for="name">First name: </label> <input type="text" name="firstname" id="name"/> </p> </form> </body> </html>
label does not describe its associated input element.
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/xhtml; charset=UTF-8" /> <title>ATRC Testfile - Check #189 - Positive</title> </head> <body> <form action="http://www.test.com" method="post"> <p> <label for="name">shoe size:</label> <input type="text" name="firstname" id="name"/> </p> </form> </body> </html>