How to fix: clickable elements inside each other
WCAG 2.2 success criterion 4.1.2 (level A)
Why it matters
Keyboard and screen reader users cannot reach the inner control.
How to fix
Do not put buttons or links inside other buttons or links.
<!-- one action per element -->
<a href="/product">Product</a> <button>Add to cart</button>
Test it yourself
- Tab through cards and banners: each stop should be one clear control, not a link inside a button or a button inside a link.
Common mistakes
- Wrapping a whole product card in a link that also contains an "Add to cart" button.
- A clickable div with role="button" that holds a real link.
Check your own site
Find this and other problems on your website in 30 seconds, free.