What a Year of Learning and Teaching Accessibility Taught Me - 24 Accessibility

ARIA is a polyfill for HTML semantics.

A great way to think about ARIA, from Sara Soueidan.

You only use a polyfill when something isn’t supported natively. If it is, why would you use one? Similarly, if a native HTML element or attribute already provides the semantics and behaviour you need, why reach for ARIA? ARIA only provides the semantics. It doesn’t change behaviour or add functionality, so you would have to build that yourself.

Guess what? This is exactly what the first rule of ARIA says:

If you can use a native HTML element or attribute with the semantics and behavior you require already built in, instead of re-purposing an element and adding an ARIA role, state or property to make it accessible, then do so.

Under what circumstances may this not be possible?

  • If the feature is available in HTML but it is not implemented or it is implemented, but accessibility support is not.
  • If the visual design constraints rule out the use of a particular native element, because the element cannot be styled as required.
  • If the feature is not currently available in HTML.

Posted on

← Backto the previous page