Accessible to agents
Part 8 · Your report4 minFix markup line by line and see the accessibility tree an agent reads: alt text, link names, names that match, ARIA, titles, field names, and things in the way.
- image, no description
- image, no description
Pictures with words
Browser agents read the accessibility tree, the page as a screen reader gets it. An image with no alt text is a gap in it.
A scan runs the accessibility rules for images, and reports coverage as a share of them. Press each line to fix it.
- Accessibility tree
- The page as the browser hands it to assistive software: roles, names and states.
Why it matters. Give every meaningful image alt text that says what it shows.
Links that say where
An agent choosing where to go next reads link names. An icon link with no text is a link to nowhere it can tell.
A scan reads the links in the rendered page, where icon links are usually put together.
Why it matters. Every link needs a name, including icon-only ones.
Names that match
Some agents act by what they see, some by the name in the tree. When the two differ, they disagree about the same button.
A scan flags controls whose name does not contain their visible text.
Why it matters. Keep a control’s accessible name in step with its visible label.
ARIA that holds up
ARIA adds roles and names that HTML lacks. Used wrong, it tells an agent things that are not true.
A scan runs the rules Lighthouse uses to judge whether an agent can operate a page: valid roles, references that exist, nothing focusable hidden.
- ARIA
- Attributes that give HTML elements roles, names and states for assistive software.
Why it matters. Use ARIA only where HTML cannot say it, and check every reference points somewhere.
A title and a main
The page title names the tab an agent is in. The main landmark says where the content starts.
A scan checks for both, and that frames are named.
Why it matters. Every page gets a real title and one main landmark, and every frame a title.
Fields with a name
A field’s name attribute is what the form sends its value under. A field without one is filled in and then dropped.
An agent fills it, submits, and the order arrives without it. A scan lists each field with no name, and its form.
Why it matters. Give every form field a name attribute, or its value is never sent.
Things in the way
A sticky bar or a chat bubble covering a button blocks an agent’s click.
Lists that swap rows as they scroll leave an agent pointing at rows that are gone. A scan checks for both in a browser.
Why it matters. Keep fixed bars off the controls, and keep list rows in the page as it scrolls.