It's time to ditch Medium for good! 🌈⚑️

Introducing Devblog by Hashnode. Blog on your domain for FREE. Highly customizable and optimized for developers.

Learn more

I am Marcy Sutton. Ask me anything.


Why just following semantic web standards not enough for web accessibility? Why do a web developer has to add additional data attributes like aria?

My egghead video on Intro to ARIA might answer that question:

Short answer: you should always start with semantic HTML because of what you get for free (keyboard focusability and semantics, style and behavior built-in). Sometimes, though, ARIA is necessary to expose accessibility information on custom elements. It doesn't add any behavior to the DOM, though, it only impacts assistive devices. It's one tool to have in your toolbox, knowing that you should reach for native elements first so you aren't having to recreate what browsers give you.

Reply to this…

(23 questions) Take me to the AMA