Interactive controls must not be nested

How to fix the nested-interactive accessibility rule. Keyboard.

What this rule checks

Ensure interactive controls are not nested as they are not always announced by screen readers or can cause focus problems for assistive technologies

Who is affected

A clickable element is inside another clickable element (e.g. a button in a link). Screen readers often announce only one of them and keyboard behaviour breaks.

How to fix it

Separate them so no interactive element contains another.

WCAG success criteria

When this rule fails, the page fails:

Find it on your own page

Scan a web page and the report lists every element that fails this rule, with screenshots outlining where they are, the code, and a selector you can paste into your browser’s developer tools.

More detail