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)
fieldset and legend elements.
fieldset and legend to group multiple checkbox buttons.
form element content must contain both fieldset and legend elements if there are related checkbox buttons.
fieldset and legend element to the form for each group of checkbox buttons.
name attribute.name attribute, check if they are contained by a fieldset element.fieldset element that contains multiple checkbox controls, check if the fieldset element contains a legend element.fieldset and legend elements.fieldset and legend elements to groups of checkbox controls.fieldset and legend elements.
<?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" /> <META content="text/xhtml; charset=UTF-8" http-equiv="Content-Type"> <title>ATRC Testfile - Check #247.2 - Negative</title> </head> <body> <form action="http://example.com/donut" method="post"> <fieldset> <legend>Donuts Requested (check all that apply)</legend> <p> <input type="checkbox" name="flavour" id="choc" value="chocolate" /> <label for="choc">Chocolate</label><br/> <input type="checkbox" name="flavour" id="cream" value="cream" /> <label for="cream">Cream Filled</label><br/> <input type="checkbox" name="flavour" id="honey" value="honey" /> <label for="honey">Honey Glazed</label> </p> </fieldset> <p><input type="submit" value="Purchase Donuts"/></p> </form> </body> </html>
fieldset or legend elements.
<?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 #247.1 - Positive</title> </head> <body> <form action="http://example.com/donut" method="post"> <p> <input type="checkbox" name="flavour" id="choc" value="chocolate" /> <label for="choc">Chocolate</label><br/> <input type="checkbox" name="flavour" id="cream" value="cream"/> <label for="cream">Cream Filled</label><br/> <input type="checkbox" name="flavour" id="honey" value="honey"/> <label for="honey">Honey Glazed</label> <br/><input type="submit" value="Purchase Donuts"/> </p> </form> </body> </html>