Web Accessibility (a11y) Deep Dive Series: ARIA Roles, States, and Properties: When (and When Not) t

Web Development Tutorials on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

IntermediateAccessibility2 min

About this video

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