UU-sjekken

Fix guides

How to fix: invalid aria roles

WCAG 2.2 success criterion 4.1.2 (level A)

Why it matters

A misspelled or made-up role is ignored, so the element loses its meaning.

How to fix

Use only valid WAI-ARIA roles, or a native HTML element instead.

<nav> <!-- instead of <div role="navbar"> -->

Test it yourself

Common mistakes

Check your own site

Find this and other problems on your website in 30 seconds, free.