Redundant Labels Hamper Screen Reader Experience

Including the word "navigation" within your navigation labels is unnecessary and creates a less efficient experience for users relying on screen readers. When a screen reader encounters a navigation element, it typically announces it as such. Adding "navigation" again, as in "Navigation, Primary navigation," results in repetitive and superfluous information being conveyed. This is a small detail, but it contributes to a smoother, more intuitive user experience.

Consider the common practice of describing an image with its type, such as saying "Image of a cat." This is also redundant because screen readers already identify elements as images. The same principle applies to navigation labels. The goal is to provide clear, concise information without unnecessary repetition. These nuances, while seemingly minor, are crucial for enhancing accessibility and usability for all users, particularly those who depend on assistive technologies.

Example of a website's primary navigation menu structure

The Technical Nuance of Semantic HTML and ARIA

Web developers often leverage semantic HTML elements like <nav> to define navigation blocks. This element inherently communicates its purpose to browsers and assistive technologies. When a screen reader encounters a <nav> element, it understands that the content within is navigational. Therefore, explicitly stating "navigation" in the label associated with this element, perhaps via an aria-label or the visible text content, is redundant.

For instance, if you have a main navigation menu, the visible text might be "Home," "About," "Services," and "Contact." If you were to label this entire group as "Primary Navigation," a screen reader might announce something along the lines of: "Primary Navigation, link, Home. Primary Navigation, link, About..." This is where the redundancy becomes apparent. A more streamlined announcement would simply be: "Navigation, Home. Navigation, About..." or even just "Home," "About," if the context is clear and the navigation landmark is announced first.

The key here is to rely on the semantic meaning of the HTML and ARIA attributes. The <nav> element itself acts as a landmark. Any additional text within the navigation items should be descriptive of the link's destination or action, not its type. For example, a link to the company's blog could simply be "Blog," rather than "Navigation, Blog." This principle extends to other semantic elements. For example, headings (<h1> through <h6>) convey structure and hierarchy, and you wouldn't typically preface a heading with "Heading:"

Conciseness and Clarity in Accessible Text

The broader principle at play is the importance of conciseness in accessible text. Whether it's alt text for images, link descriptions, or navigation labels, the aim is to be as direct and informative as possible without extraneous words. This not only benefits screen reader users but also users with cognitive disabilities or those who are simply in a hurry and need to process information quickly.

Think of it like giving directions. If you're telling someone how to get to the main entrance of a building, you wouldn't say, "Now, follow the entrance path to the main entrance." You'd simply say, "Follow the path to the main entrance." The word "entrance" is implied by the context and the destination. Similarly, in web design, we should strive for this level of clarity and efficiency.

Mark Underhill, who highlighted this issue, suggests that these are minor pet peeves that, when addressed, significantly improve the user experience. It's about paying attention to the details that make digital spaces more navigable and less frustrating for everyone. The goal is to remove any friction that might prevent users from efficiently accessing the content they need.

Ultimately, this advice is about good UX and accessibility hygiene. By understanding the underlying semantics of HTML and ARIA, developers can create more streamlined and user-friendly interfaces. The takeaway is simple: trust the browser and assistive technologies to understand the context, and focus on providing clear, descriptive content within your labels and text.