A short tutorial on when to use ARIA roles, states and properties in web pages, and why a native HTML element is usually the better choice. It compares a div styled as a button with a real button element and shows aria-pressed on a toggle.
What you’ll learn
✓Decide when a native HTML element works better than an ARIA role
✓Use aria-pressed to announce the state of a toggle button
✓Spot a div with role="button" that should be a real button element