First Rule of ARIA
The guideline that you should not use ARIA if a native HTML element or attribute already gives the meaning and behaviour you need.
In more detail
A real <button> is focusable, works with Enter and Space and is announced correctly; a <div role="button"> needs all of that rebuilt by hand. ARIA is for cases HTML cannot express, such as tabs or a combobox.
Related terms
- ARIA — The W3C standard of HTML attributes, such as role and aria-expanded, that tell assistive technology what a custom widget is and what state it is in.
- semantic HTML — Using HTML elements for their meaning, such as <button> for actions and <nav> for navigation, rather than generic <div>s.
Taught in
- WAI-ARIA Semantics: Roles, States & Accessible Name Computation — Design Systems & Component Engineering