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 radio buttons.
form element content must contain both fieldset and legend elements if there are related radio buttons.
fieldset and legend element to the form for each group of radio buttons.
name attribute.name attribute, check if they are contained by a fieldset element.fieldset element that contains multiple radio buttons, check if the fieldset element contains a legend element.fieldset and legend elements.fieldset and legend elements to groups of radio buttons.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" /> <title>OAC Testfile - Check #168 - Negative</title> </head> <body> <form action="http://example.com/donut" method="post"> <fieldset> <legend>Donut Type</legend> <p> <input type="radio" name="flavour" id="choc" value="chocolate" checked="checked" /> <label for="choc">Chocolate</label><br/> <input type="radio" name="flavour" id="cream" value="cream"/> <label for="cream">Cream Filled</label><br/> <input type="radio" name="flavour" id="honey" value="honey"/> <label for="honey">Honey Glazed</label> </p> </fieldset> <p><input type="submit" value="Purchase Donut"/></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>OAC Testfile - Check #168 - Positive</title> </head> <body> <form action="http://example.com/donut" method="post"> <p> <input type="radio" name="flavour" id="choc" value="chocolate" checked="checked" /> <label for="choc">Chocolate</label><br/> <input type="radio" name="flavour" id="cream" value="cream"/> <label for="cream">Cream Filled</label><br/> <input type="radio" name="flavour" id="honey" value="honey"/> <label for="honey">Honey Glazed</label> <br/><input type="submit" value="Purchase Donut"/> </p> </form> </body> </html>