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;
- Any
id
s 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.
Summary
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 id
s). [Web only]
Common mistakes
- HTML elements are not well formed (opened and closed properly).
- HTML
id
attributes use duplicate values within the same page. - HTML elements include invalid attributes.
- ARIA attributes are invalid.
Design Guide
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.
References
- W3C’s detailed explanation with techniques and examples.
- Accessibility Guidelines- Github.io
One response to “WCAG – 4.1.1 Parsing (Level A)”