Sub topic 5
Setting Reading Order and Focus Order
Assume you know basic wireframing, common interface components, and how HTML structures a page. This chapter connects those skills to two accessibility decisions: reading order and focus order.
Reading order
Reading order is the sequence in which content is presented to someone who uses a screen reader, magnification tool, or keyboard. A good order follows the meaning of the page. It usually moves from the page title to navigation, the main content, supporting content, and finally the footer.
During wireframing, number the major regions and content blocks. Ask whether a user can understand each block without seeing the whole screen. A two-column layout might appear balanced visually, but the narrow supporting column should not interrupt the main task when read aloud.
The visual position of an element does not guarantee its reading position. In a web page, the HTML source order usually determines the default reading order. CSS can move an element visually without moving it in the document structure.
Focus order
Focus order is the sequence of interactive elements when a user presses Tab. It should support the same task flow as the reading order. For an order form, focus might move through:
- Skip link.
- Main navigation.
- Page controls.
- Form fields from top to bottom.
- Submit button.
- Confirmation or follow-up actions.
Avoid assigning positive tabindex values to force a custom sequence. They create a second order that is difficult to maintain. Instead, place interactive elements in the correct source order and use the native tab order.
| Wireframe question | Accessibility decision |
|---|---|
| What should be understood first? | Put it earlier in the reading order. |
| What action comes next? | Put its control next in the focus order. |
| Does a visual layout change on mobile? | Preserve a meaningful source order. |
| Does a dialog open? | Move focus into the dialog and return it when the dialog closes. |
Check the order in the wireframe
Mark every interactive element with a focus number. Mark content blocks with a reading sequence. Compare the two sequences. They do not need to match exactly, but neither should make the task confusing.
Use a skip link when repeated navigation appears before the main task. A skip link lets keyboard users jump directly to the main content.
<a class="skip-link" href="#main-content">Skip to main content</a>
<header>
<nav aria-label="Main navigation">
<a href="/account">Account</a>
<a href="/orders">Orders</a>
</nav>
</header>
<main id="main-content">
<h1>Order history</h1>
<button type="button">Filter orders</button>
<a href="/orders/123">View order 123</a>
</main>When a button opens a dialog, the dialog's first useful control should receive focus. When the dialog closes, focus should return to the button that opened it. This prevents the user from losing their place.
Exercise
Exercise
A sidebar appears visually to the left of the main article, but it contains optional tips. Where should it usually appear in the reading order?
Show answer
After the main article, unless the tips are required to understand or complete the article.