ARIA & Developer Tools

ARIA Role Validator

An invalid role attribute (such as role='popup' or role='dropdown') is ignored by assistive technologies. Validate every role attribute in your markup.

Your files and content are processed locally in your browser. We do not upload your files to our servers.

What This Tool Does

  • Validates all role attributes against the WAI-ARIA 1.2 role taxonomy.
  • Surfaces native HTML alternatives where roles are misused.

Who Should Use It

  • UI component authors
  • Frontend developers

How to Use ARIA Role Validator

  1. Paste HTML/JSX output markup to validate every explicit role attribute.

Accessibility Principles & Technical Methodology

Valid widget roles like dialog, tablist, tab, tabpanel, and combobox require corresponding keyboard handlers and state attributes (aria-selected, aria-expanded).

Technical Methodology

Parses [role] elements and validates tokens against WAI-ARIA 1.2 non-abstract roles.

Practical Examples

Modal Role

Use role='dialog' aria-modal='true' (or native <dialog>), never role='modal'.

Relevant WCAG 2.2 Criteria

  • 4.1.2 Name, Role, Value (A)
Explore WCAG 2.2 Guide

Common Mistakes to Avoid

  • Inventing non-standard roles like role='card' or role='modal' (the standard role is 'dialog').

ARIA Role Validator — FAQs

No. Use role='dialog' or role='alertdialog' paired with aria-modal='true'.
ARIA & Dev

ARIA Attribute Checker

Validate aria-* spelling, WAI-ARIA 1.2 compliance, and broken ID references.

Open tool
ARIA & Dev

ARIA Label Validator

Verify aria-label, aria-labelledby references, and WCAG 2.5.3 Label in Name.

Open tool
ARIA & Dev

ARIA Live Region Tester

Test polite vs. assertive ARIA live regions, role='status', and role='alert' live.

Open tool
ARIA & Dev

Accessible Name Checker

Inspect computed accessible names and exact naming precedence for every control.

Open tool
ARIA & Dev

Tabindex Checker

Detect positive tabindex (> 0) values and improper tabindex usage in HTML.

Open tool