Overview

5 Ensure effective navigation and interaction

```html

The chapter shifts the focus from readable text to the wider experience of finding, understanding, and operating a web page. It emphasizes that accessibility depends on more than legibility: users also need clear orientation, predictable movement, understandable structure, and controls that work with different input methods. The core idea is that good navigation and interaction reduce cognitive load, help users recover when interrupted, and make web applications feel reliable for everyone.

A major theme is structural clarity. Unique page titles and properly marked headings help users know where they are, scan content, and move efficiently through pages with browsers or assistive technologies. The chapter also stresses consistent navigation and semantic landmarks so repeated page regions appear in stable places and are named consistently. Native HTML is preferred for these patterns, with ARIA used only when necessary, because semantic elements expose the right meaning more robustly and reduce implementation errors.

The later sections focus on direct interaction barriers: keyboard access, visible focus, skip links, link clarity, and forgiving target size. Keyboard users need every control reachable in a logical order, a clear focus indicator, and no traps caused by scripts or overlays. Links should be descriptive, distinguishable from text, and announced clearly, especially when opening new windows or using icons. Finally, the chapter argues for larger, well-spaced targets to support touch, mouse, and gaze input, showing that designs built for imprecision are more usable for everyone.

```
Headings in semantically correct HTML are automatically added to the accessibility tree. This way assistive technology users can understand the structure of the page, as well as individual sections.
Headings in semantically correct HTML are automatically added to the accessibility tree. This way assistive technology users can understand the structure of the page, as well as individual sections.
Custom focus indicators should not just meet minimum conformance requirements, but should also improve the overall experience for all users. In this case, two interactive components are shown: a link and an input text field. The link’s focus indicator includes a solid outline, a thicker underline, and a shaded background. The text field’s indicator includes a thicker outline and a patterned outer border in a different bright color. The idea is to offer sufficient contrast across all backgrounds, while making it easier to perceive.
Custom focus indicators should not just meet minimum conformance requirements, but should also improve the overall experience for all users. In this case, two interactive components are shown: a link and an input text field. The link’s focus indicator includes a solid outline, a thicker underline, and a shaded background. The text field’s indicator includes a thicker outline and a patterned outer border in a different bright color. The idea is to offer sufficient contrast across all backgrounds, while making it easier to perceive.
This image shows a sticky cookie banner overlapping interactive page content. The Submit button, which currently has focus, is partially obscured by the banner.
This image shows a sticky cookie banner overlapping interactive page content. The Submit button, which currently has focus, is partially obscured by the banner.
A link with keyboard focus is partially hidden by the cookie banner. This happens when fixed elements are placed at the top or bottom without applying scroll padding CSS rules.
A link with keyboard focus is partially hidden by the cookie banner. This happens when fixed elements are placed at the top or bottom without applying scroll padding CSS rules.
Focus order can seem illogical if elements are moved around using CSS rather than having the tabbing sequence match the underlying DOM structure. This image shows the tab sequence starting from the right-most element, and then skipping to the first.
Focus order can seem illogical if elements are moved around using CSS rather than having the tabbing sequence match the underlying DOM structure. This image shows the tab sequence starting from the right-most element, and then skipping to the first.
Focus order should be logical everywhere, including form elements. This image shows a focus order typically expected in a sign-up form,
Focus order should be logical everywhere, including form elements. This image shows a focus order typically expected in a sign-up form,
Focus order in a horizontal form. The flow should be logical to your intended audience. For instance, in this case, English readers will expect a left-to-right top-down flow. Also note that although the last two buttons are placed next to each other, the main action “Proceed to Payment” is taking precedence over the secondary action “Back to Search”. This is a logical and usable design.
Focus order in a horizontal form. The flow should be logical to your intended audience. For instance, in this case, English readers will expect a left-to-right top-down flow. Also note that although the last two buttons are placed next to each other, the main action “Proceed to Payment” is taking precedence over the secondary action “Back to Search”. This is a logical and usable design.
In modal dialogs, keyboard focus should remain inside the dialog until it is dismissed, rather than moving to background content.
In modal dialogs, keyboard focus should remain inside the dialog until it is dismissed, rather than moving to background content.
Skip links, placed at the top of a page, allow users to bypass blocks of repeated content, such as link blocks repeated at the top of each page.
Skip links, placed at the top of a page, allow users to bypass blocks of repeated content, such as link blocks repeated at the top of each page.
Default browser link styling as applied to the word “codebase”. Links are typically shown in dark blue with an underline.
Default browser link styling as applied to the word “codebase”. Links are typically shown in dark blue with an underline.
Links without any visual cues are indistinguishable from their surrounding text. The word “codebase” is a link, but there is no way of identifying it.
Links without any visual cues are indistinguishable from their surrounding text. The word “codebase” is a link, but there is no way of identifying it.
An image of text, along with a clickable “Read more...” link placed on top of it. This pattern is very common in carousels, making it extremely hard for assistive technology users to discern what the link is referring to. Context, as conveyed by the surrounding text, is lost.
An image of text, along with a clickable “Read more...” link placed on top of it. This pattern is very common in carousels, making it extremely hard for assistive technology users to discern what the link is referring to. Context, as conveyed by the surrounding text, is lost.
This image shows two links, both of which inform users that they open content in a new window. The first approach uses an icon with visually hidden text for assistive technology users, while the second approach shows the same link alongside visible text indicating that a new window or tab will open.
This image shows two links, both of which inform users that they open content in a new window. The first approach uses an icon with visually hidden text for assistive technology users, while the second approach shows the same link alongside visible text indicating that a new window or tab will open.
This image shows a typical pagination control with small targets placed close to each other. The darker circle approximates the fingertip contact area, which covers multiple targets simultaneously.
This image shows a typical pagination control with small targets placed close to each other. The darker circle approximates the fingertip contact area, which covers multiple targets simultaneously.
This image shows the same pagination control with larger target areas and better spacing between targets. This improves usability and accessibility for people with different abilities using any input modality. The darker circle approximates the fingertip contact area, which fits well within a single target.
This image shows the same pagination control with larger target areas and better spacing between targets. This improves usability and accessibility for people with different abilities using any input modality. The darker circle approximates the fingertip contact area, which fits well within a single target.

Summary

  • All web pages need to have titles that clearly describe their purpose. These are what browsers use to label tabs, history entries, and bookmarks. Users therefore rely on them to stay oriented. This also matters to screen reader users who rely on page titles to distinguish between different pages.
  • Headings are a core part of your content structure, and when used well, they enhance navigability and understanding.
  • Consistency is important in any web application. This includes any aspect, from navigation to action names. Navigation mechanisms that are repeated across pages should appear in a consistent location and order. Actions and functionality should also be consistently named, and if icons are used, these should also be consistent throughout the application.
  • Assistive technology users will typically explore and navigate pages using programmatically defined page landmarks. Semantic HTML elements such as <header>, <main>, <nav>, and <footer> provide a programmatic way to communicate regions on a page. They come with built-in meaning, allowing assistive technology users to identify key regions within a page.
  • All functionality on a website should be accessible to keyboard-only users. Any pointer or touch action needs to also have a keyboard equivalent - wherever possible.
  • Unlike mouse users, keyboard users rely on sequential navigation, and their current position on the page can only be identified through a focus indicator. Every interactive component should have a clearly visible indicator when it receives keyboard focus. Browsers come with default indicators; however, one can also implement custom indicators for more visibility.
  • We need to ensure that when users navigate content sequentially using a keyboard, all interactive elements – such as links, buttons, and form fields – receive focus in a predictable order that matches the visual presentation.
  • Skip links help keyboard and screen reader users bypass repeated blocks of interactive links - such as a navigation bar at the top of each page.
  • Keyboard traps block keyboard users, making them a severe accessibility barrier. This happens when keyboard focus is trapped on a single element, or within a part of the page, preventing the user from progressing through the interface. With simple and quick tests, keyboard traps can be detected and resolved.
  • Links are fundamental for any web application as they move people around through a site, point to related information, trigger downloads, open documents, and sometimes take people away from the current page entirely. That makes link design an accessibility concern, not just a visual design detail. Links need to be visually distinct from surrounding text, expose a visible keyboard focus state, and communicate their purpose clearly. If a link opens a new tab or is represented by an image, users, and particularly those using assistive technology, should not have to guess what will happen.
  • Designing for imprecision is essential. We cannot assume that our users can point with pixel-perfect accuracy. Small targets may be difficult to activate with a finger, mouse, eye tracker, or other pointing methods. Error traps can be created if they are also crowded. Target size is therefore not just a mobile or touchscreen issue – people using a mouse may experience tremors or limited dexterity. People using eye trackers may experience calibration issues due to involuntary movements. In either case, small and crowded controls increase effort and the likelihood of errors.

FAQ

Why should every page have a unique and descriptive title?Page titles help users identify where they are in browser tabs, history, and bookmarks. Unique, descriptive titles are especially important for screen reader users and for people switching between multiple tabs, because they provide orientation even when a page is read out of context.
How should page titles be structured for better accessibility?Keep titles short but meaningful, put the most important information first, and include the site or organization name at the end when useful. Use consistent separators, and align the page title with the main heading when possible to avoid confusion.
Why are proper HTML heading elements important?Native headings from <h1> to <h6> communicate document structure to browsers and assistive technologies. They help users navigate by section, understand hierarchy, and scan content more efficiently than styled <div> or <span> elements.
What is the recommended way to organize heading levels on a page?Use headings in a logical hierarchy, moving sequentially through levels where appropriate. Avoid skipping levels, such as jumping from <h2> to <h4>, because this can confuse assistive technology users and make the page outline harder to understand.
What makes navigation consistent across pages?Repeated navigation should appear in the same location, in the same order, and with the same labels and behavior across pages. Consistency reduces cognitive load and helps users, especially those using screen readers, magnifiers, or memory supports, predict how the interface works.
When should ARIA landmarks be used instead of native HTML landmarks?Prefer native semantic elements like <main>, <nav>, <header>, and <footer> first. Use ARIA landmark roles only when native elements are unavailable or unsuitable, such as in legacy code or constrained widget systems.
Why are skip links useful, and where should they be placed?Skip links let keyboard and screen reader users bypass repeated blocks like headers and navigation and jump directly to main content or another meaningful section. They should be the first focusable elements on the page and become visible when focused.
What is a keyboard trap, and why is it a problem?A keyboard trap happens when focus gets stuck inside a component or part of a page and the user cannot move away using the keyboard. This blocks keyboard-only users and can force them to refresh the page, losing progress and context.
How can you make focus indicators accessible and effective?Do not remove browser default focus styles unless you replace them with a clearly visible custom indicator. Focus indicators should be easy to spot, high-contrast, not rely on color alone, and remain visible even against varied backgrounds or overlays.
What target size guidance helps touch, gaze, and mouse users?Design interactive targets to be large enough and well spaced so users do not need pixel-perfect precision. WCAG 2.2 recommends at least 24 by 24 CSS pixels at Level AA and 44 by 44 CSS pixels at Level AAA for most pointer targets, with extra care for controls that are close together or easy to activate by mistake.

pro $24.99 per month

  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose one free eBook per month to keep
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime

lite $19.99 per month

  • access to all Manning books, including MEAPs!

team

5, 10 or 20 seats+ for your team - learn more


Close
choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Architecting Accessibility Architecting Accessibility ebook for free
Close
choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Architecting Accessibility Architecting Accessibility ebook for free