Accessibility Dashboard
Skip to Main Content

Do I need to add a ‘role’ attribute to html 5 tags like nav aside, main, etc.?

I am using the new html 5 tags on my site to give it more semantics. In addition to this should they all be given the corresponding role?

Answer

While the whole point of HTML5 elements is to provide more semantics to the page without providing ‘role’ attributes, it can still be a good idea to add ARIA roles to elements like ‘buttons’ to explain their purpose further.

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>