N - accessible forms
1.3 Ensure that information and structure can be separated from presentation
Success Criteria 1.3.1 Info and Relationships (A)
1.3 Adaptable: Create content that can be presented in different ways (for example simpler layout) without losing information or structure.
Success Criteria 1.3.1 Info and Relationships (A)
1.3 Adaptable: Create content that can be presented in different ways without losing information or structure.
Success Criteria 1.3.1 Info and Relationships (A)
input elements, type of "text", have a label containing text.
input element, type of "text", has no text in label.
input element that contains a type attribute value of "text" must have text in its associated label.
input element's associated label that describes the purpose or function of the control.
input elements that have a type attribute value of "text".input element must have an explicitly associated label using one or more of the following methods.input element has an id attribute value that matches the for attribute value of a label element.input element has a title attribute.input element is contained by a label element.input elements, type of "text", have a label containing text.for and id attributes contains text.
<?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 #213 - Negative</title> </head> <body> <form action="http://somesite.com/prog/adduser" method="post"> <p> <label for="texta">Name:</label> <input id="texta" type="text" name="mytext" tabindex="1" /> </p> </form> </body> </html>
for and id attributes does not contain text.
<?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 213 - Positive</title> </head> <body> <form action="http://somesite.com/prog/adduser" method="post"> <p> <label for="texta"></label> <input id="texta" type="text" name="mytext" tabindex="1" /> </p> </form> </body> </html>