accessibility-guidelines

This document is in beta. Help us by reporting issues via Github or email

Back to the overview page

Valid HTML

On this page:


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 ids). [Web only]


Requirements (Web only)

Common mistakes

Why?

This ensures that content and functionality is presented in a way that works reliably across all supported browsers and assistive technologies.

Official wording in the Web Content Accessibility Guidelines

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)

See the W3C’s detailed explanation of this guideline with techniques and examples.


Guidance for Web

Checking whether elements with ARIA role attributes are nested correctly

More guidance for Web


More info

Sources

Contribute

This document is in beta. Help us by reporting issues via Github or email