6 Help people complete tasks efficiently
Here’s a concise summary of the chapter’s main ideas about helping people complete tasks efficiently. The chapter argues that accessible forms and task flows should reduce confusion, effort, and mistakes by making purpose, instructions, and outcomes clear from the start. It emphasizes that forms are not just input containers; they are central to whether users can successfully achieve their goals, especially for people using assistive technology or facing cognitive, motor, or visual barriers.
A major theme is using native HTML first, because built-in elements provide semantics, keyboard behavior, and compatibility that custom code often fails to match. The text explains how to label controls properly, group related fields, mark required inputs clearly, provide hints and error messages in ways screen readers can understand, and use attributes like autocomplete, inputmode, and native validation to lower cognitive and physical workload. It also shows how to manage validation and feedback responsibly, including error summaries, live regions, and status messages that announce progress or completion without interrupting users unnecessarily.
The chapter then broadens into other patterns that support efficient completion: safeguarding users against harmful actions, respecting the extra time some people need, and using familiar interface structures to reduce memory burden. It explains when a custom ARIA component may be justified, but stresses that doing so creates ongoing responsibilities for behavior, focus management, state updates, and testing. Finally, it recommends contextual help, clear recovery paths, and consistent support options so users can get assistance without losing their place or their work.
This image shows a typical HTML form. There are a number of accessibility concerns, from low contrast to missing form labels.
Related radio buttons grouped and titled using the <fieldset> and <legend> elements.
Once the user submits the form, a toast notification comes up (bottom right corner) for different intermediate steps, once to indicate that the request is being processed, and the second to indicate that the request has been received successfully – at which point, the form is reset.
A radio button group (“Choose a plan”) (left) and a checkbox group (“Select your interests”) (right).
A tri-state toggle button (“Notifications”) implemented using a radio button group (left) and a toggle button implemented using a checkbox (“Contact by email”) (right).
Animated disclosure elements (left) implemented using <details> and <summary> (FAQs) and a text box with a <datalist> for auto-suggestions (“Choose a country”) (right).
Labeled input fields are organized in logical groups using fieldsets and a legend to provide context. Mandatory fields are also clearly marked, and instructions are also provided wherever necessary. The form has an accessible name that references the preceding level-2 heading via aria-labelledby.
On submission, an error summary is provided, consisting of a list of form validation errors, linking to each individual input field. The error summary receives keyboard focus. Individual fields in error are marked using aria-invalid=”true” and are also highlighted, together with an inline error message.
Native <button> elements are used, with clear labels that describe each action. Primary and secondary actions are visually distinguished, while the “Clear all fields” button includes additional guidance programmatically associated via aria-describedby.
Contrast has been enhanced, including labels, control outlines, and keyboard focus indicators.
Data table displaying tabular data alongside additional functionality such as sorting and linking.
Data grid displaying tabular data in a spreadsheet like experience. For example, users can use the arrow keys to move in two dimensions across grid cells, as well as optional features such as editing.
Tables and grids may scroll in two dimensions when necessary; however, this scrolling should be contained within the component, so that the overall page content can still reflow in a single direction.
An example of a data grid with custom focus management, selection capabilities, as well as copy and paste functionality using the clipboard.
Tooltip control, showing supplementary information about an input field using an icon button trigger.
Summary
- Forms do a significant amount of heavy lifting in web applications. When poorly designed or implemented, they can create barriers, particularly for assistive technology users, keyboard-only users, speech-input users, people with low vision, and people with cognitive or motor disabilities.
- Every user-facing form control needs an accessible name and, in most cases, a visible, programmatically associated label. Labels should clearly describe the control’s purpose and remain available when users enter data.
- Forms should explain what information is required and the format in which it must be entered. Clearly distinguish required fields, and provide instructions when labels alone are not enough, for example, formatting requirements, example values, constraints, or guidance on where to find the requested information. Clear instructions help users avoid errors before they occur.
- Prefer native HTML controls wherever they meet the requirement. They provide built-in semantics and predictable behavior, and have been tested extensively across browsers, operating systems, and assistive technologies. The moment a team decides to develop a custom control, it accepts responsibility for reproducing all those semantics and behaviors, as well as state and focus management. They must then be implemented correctly, tested across browsers and assistive technologies, and maintained as platforms and standards evolve.
- When a form contains many related fields, group them into meaningful sections. Where appropriate, use <fieldset> and <legend> to communicate relationships programmatically. Logical grouping makes forms easier to understand and reduces the perceived workload by presenting the task in manageable chunks.
- Forms must be fully operable with a keyboard. As discussed in chapter 5, the focus order should follow the visual presentation and the task's logical sequence. Focus indicators must remain clearly visible, and users must never become trapped within a form control or section.
- Validate input to help users avoid mistakes, but do not rely on client-side validation for security or data integrity. Server-side validation remains essential. When errors occur, identify the affected fields, explain what went wrong in clear language, and, where possible, suggest how to correct the problem.
- Forms may need to communicate more than validation errors. They may also report progress, successful submissions, loading states, or other updates. Where users need to be informed without focus moving to the message, expose the update programmatically as an appropriate status message or live region. Do not announce every minor change, as excessive feedback can become disruptive.
- Alongside inputmode, which helps browsers choose an appropriate virtual keyboard, the type and autocomplete attributes can make form filling more efficient. Used correctly, they support users when entering data, prefilling fields with previously submitted personal information.
- When a form or action could have serious legal, financial, or personal consequences, ordinary validation may not be enough. Give users a meaningful opportunity to review, correct, confirm, or reverse the submission. Depending on the task, this may involve a review step, an explicit confirmation, a clear explanation of the consequences, or an undo mechanism. The safeguard should match the risk rather than adding a routine checkbox that users may select without reading
- Session timeouts should not feel like a punishment; these should be a carefully engineered part of the process. When a limit is necessary, users should retain enough control to complete the task without undue pressure. WCAG 2.2 Success Criterion 2.2.1, Timing Adjustable, generally requires users to be able to turn off, adjust, or extend a time limit, subject to specific exceptions.
- Human short-term memory is limited, so interfaces should favor recognition over recall. Clear labels, familiar controls, consistent patterns, and understandable icons reduce the need to remember where things are or how they work. More complex or infrequent tasks may require additional prompts, instructions, and contextual help.
- Offer help where it is needed most. Users should not have to abandon a task, search elsewhere for essential information, and then attempt to resume where they left off. Contextual help allows people to resolve uncertainties while maintaining focus on the task at hand.
Architecting Accessibility ebook for free