WebAIM - Web Accessibility In Mind

E-mail List Archives

Duplicate html5 structural elements with aria roles?

for

From: Mickey Williamson
Date: Feb 8, 2016 9:06AM


I recently was told by an accessibility professional that if you're using
the HTML5 structural elements like header, footer, main, etc. that you
should NOT also be using the corresponding aria role attribute because aria
will override the native html. Don't know if that was for all of the
structural elements or just specific ones.

So, <header role="banner"> is bad. Just use <header>.

But then I also recently read that it's better to include the role
attribute...because I don't remember why! Because older browsers don't
support the html5 elements?? And I can't find the article where I read it
now.

So, what's best to do? Include the role for structural elements or not
include the role?

Thanks,
Mickey