Section 4.1: Robust Content
This section of WCAG 2.1 focuses on ensuring content is robust enough to be interpreted reliably by a wide range of user agents, including assistive technologies.
4.1.1 Parsing
Ensure that HTML or XML content is correctly formed and does not contain errors that prevent it from being reliably interpreted.
- Example: Below is an example of valid and well-formed HTML:
<html> <head> <title>Example Title</title> </head> <body> <h1>Hello World</h1> </body> </html>
4.1.2 Name, Role, Value
Ensure user interface components have programmatically determinable names, roles, and values for compatibility with assistive technologies.
- Example: Below is a button with clearly defined attributes:
- Example: Below is a form field with a defined label and value: