Section 4: Robust
The "Robust" principle ensures that web content is compatible with a wide variety of user agents, including assistive technologies. It focuses on creating well-structured content that can adapt to changing technologies without losing functionality or accessibility.
4.1 Parsing
Ensure that content is written using proper markup and follows standards to avoid errors that could interfere with accessibility.
- Example: Use well-formed HTML to avoid issues with screen readers or browsers. For instance, ensure all opening tags have corresponding closing tags.
- Example: Avoid duplicate IDs in HTML to maintain correct parsing.
4.2 Name, Role, Value
Make sure user interface components have programmatically defined names, roles, and values to support assistive technologies.
- Example: Buttons should have appropriate ARIA roles and labels, such as
role="button"
andaria-label="Submit"
. - Example: Forms should include explicit labels for input fields using the
label
element.