CodeZettaInterview Hub

HTML · Accessibility · Junior · Comparison

What is the difference between aria-hidden and the hidden attribute?

Short Interview Answer

hidden removes from presentation and usually the a11y tree; aria-hidden hides from AT but may remain focusable if misused.

Detailed Explanation

Never aria-hide focusable elements without removing them from tab order. Prefer hidden/inert for closed UI.

Did you know this answer?