WebAIM - Web Accessibility In Mind

E-mail List Archives

Landmark and HTML 5

for

From: Jayakar, Ritu
Date: Mar 9, 2020 12:20PM


Hello Everyone,



I find contradictory information on using "role" for the HTML elements main, nav, aside and header footer. Some say these elements should be used in conjunction with aria role e.g.: <main role="main"> so that screen readers which do not recognize HTML 5 can read the role tag to recognize the section. My site needs to be tagged with landmark, I need to decide if it useful to implement, if yes what is the best practice to implement landmarks, add the role to HTML 5 elements or not.



I plan to main do two things:

1. Contain all elements/content in landmarks
2. Add uniquely identifiable landmarks especially for navigation- we have top site navigation, left bar for section navigation, breadcrumbs and repeat bottom navigation



Looking forward to hear your thoughts on this.

Thank you everyone for sharing your expertise with the community.



Kind Regards

Ritu Jayakar