People with loss of vision who rely on screen readers to navigate the web can list and navigate by elements to quickly overview the page and jump directly to a certain section they are interested in. This is quite similar to how people with vision scan the page. Although not strictly required for compliance, landmarks are commonly used elements for this purpose and can provide significant benefits for accessibility.
I suggest adding the following landmarks to structure the page:
<main>
element to encapsulate the primary content of the page.<header>
element to encapsulate the main navigation and the popovers.<nav>
element with an aria-label="Primary"
attribute to encapsulate the links inside the main navigation. The label is added because there will be more navigational elements on the search results page, so they need to be differentiated.<footer>
element to encapsulate the links in the bottom of the page.role=”search”
attribute to the search form, to identify it’s purpose.See the following image for the proposed landmark map of the page.
Proposed landmark map of the landing page
On the search results page all results are implemented as <article>
elements, which makes sense semantically, but without unique titles they are not really helpful for screen reader users.
By adding aria-label
to them with the title of the result greatly improves this experience; see in the following image how the first 3 results make sense in the landmarks panel compared to the rest without titles.