Quick answer
HTML Invalid role – causes and fixes.
HTML Invalid role
HTML Invalid role – causes and fixes. Use an HTML validator.
Common causes
- Unknown or wrong role.
- Conflict with element.
How to fix
- Use valid ARIA role.
Use our HTML Validator to paste your markup and see the exact error. Validatethis.org offers free validators for HTML, JSON, XML, CSV, and more. Check /tools for the full list. For API access, see /developers.
FAQ
- Role list?
- ARIA spec.
- button role?
- On button optional.
Fix it now
Try in validator (prefill this example)