CodeZettaInterview Hub

HTML · Accessibility · Fresh / Intern · Debugging

Why are clickable <div>s an accessibility problem?

Short Interview Answer

They lack button semantics, keyboard activation, and often focus styles.

Detailed Explanation

Use button or a href. If unavoidable, add role, tabindex, key handlers, and focus styles — still inferior to native.

Did you know this answer?