jargon

Frontend & browser·Accessibility and semantics

you added `role="button"` to a div and it still did nothing on the space bar.

ARIA role

Also calledrole attribute

An attribute declaring what an element is, so assistive technology announces it correctly. It changes only the announcement: no keyboard behaviour, no focusability, no default action comes with it. That gap is why the first rule of ARIA is not to use it — a role on a div is a promise to implement everything the native element would have done.

Commonly confused with