The HTML FIELDSET tag is used to group form fields together. As an example, if you have a series of checkboxes or radio buttons that all share the same label, you can use the LEGEND tag to associate one text label with all of the fields. See Example 1 below.
Another example of use is when you have several form fields on the page with the same label. If you have a shopping cart on which there is both a shipping address and a billing address both have first name, last name, street address, city, state, etc. In this case a LEGEND is read along with each form fields label. See Example 2 below.
|IE 9||JAWS 12||Yes|
|FF 4||JAWS 12||Yes|
- WCAG 2.0 SC 3.3.2 Labels or Instructions: Labels or instructions are provided when content requires user input. (Level A)
- Using the HTML LABEL tag and or INPUT’s TITLE attribute.
- Use CSS to hide text from the visual user to create offscreen text that can be used for labels.
- Using ARIA attributes