ARIA Tag Validator
HTML Code Input
Validation Report
Enter HTML and click "Validate" to see the report.
Validation Rules Checked by This Tool
- Valid Role: Checks if the value of a `role` attribute is a recognized ARIA role.
- No Abstract Roles: Prevents the use of "abstract" base roles which should not be used directly in HTML.
- Valid ARIA Attributes: Ensures all `aria-*` attributes are valid and correctly spelled.
- Required Parent Role: Verifies that elements with certain roles (e.g., `listitem`) are correctly placed inside a required parent element (e.g., `list`).
- Required Child Role: Checks that elements with container roles (e.g., `list`) have the required child roles (e.g., `listitem`).
- Valid IDREF: For attributes like `aria-labelledby`, this checks if the ID it points to actually exists in the provided code snippet.
- Redundant Role: Flags ARIA roles that are unnecessary because they match the default role of the HTML element (e.g., `role="button"` on a `
