4.1.1 Parsing: In content implemented using markup languages, elements have complete start and end tags, elements are nested according to their specifications, elements do not contain duplicate attributes, and any IDs are unique, except where the specifications allow these features. (Level A)
Requirements (Web only)
- HTML elements have complete start and end tags;
- HTML elements are nested according to their specifications;
- HTML elements do not contain duplicate attributes;
ids are unique within a page.
Why is it important?
This ensures that content and functionality is presented in a way that works reliably across all supported browsers and assistive technologies.
Make sure the HTML does not contain markup errors that are known to cause conflicts with assistive technologies (such as incorrect nesting of elements, or duplicate
ids). [Web only]
- HTML elements are not well formed (opened and closed properly).
idattributes use duplicate values within the same page.
- HTML elements include invalid attributes.
- ARIA attributes are invalid.
Parsing Examples for Web
- Checking whether elements with ARIA role attributes are nested correctly
- If you’re using the ARIA role attribute, look at the role’s definition in the W3C ARIA 1.1 specifications to check whether you’re nesting elements with that role correctly.