Accessibility annotations

On this page 7

Accessibility annotations are structured notes that designers add to mockups and prototypes to specify how an interface must behave for people using assistive technology. In accessibility practice within design, they document information that a static picture cannot show, such as heading levels, focus order, accessible names, landmarks and states, so that developers implement it correctly the first time.

Annotations close the gap between what a design looks like and what the code must expose to screen readers, keyboards and other input methods. They turn accessibility from a late audit finding into an explicit part of the design handoff.

What accessibility annotations document

Accessibility annotations document the non-visual layer of a design: the semantics, relationships and behaviors that assistive technologies rely on. A visual mockup shows a bold line of text, but only an annotation can state that it is an H2 heading that begins a new section of the page.

The most common annotation categories and the questions they answer are summarized below.

CategoryWhat it specifiesWho relies on it
HeadingsHeading levels from H1 to H6Screen reader users navigating by heading
LandmarksRegions such as header, navigation, main, footerUsers jumping between page regions
Focus orderSequence of interactive elements on TabKeyboard and switch users
Accessible namesLabels for icons, buttons and fieldsScreen reader and voice control users
Roles and statesComponent type, expanded, selected, disabledAssistive technology announcing changes
Alternative textDescription of meaningful imagesUsers who cannot see images
Core categories of accessibility annotations

Further annotations cover error messages and live announcements, reading order where it differs from visual order, touch target sizes, motion behavior and the handling of zoom and text resizing.

How annotations connect design to standards

Accessibility annotations translate design intent into requirements that map to WCAG success criteria and to the semantics defined by HTML and WAI-ARIA. Each note should be specific enough that a developer can choose the correct element or attribute without guessing.

The table shows how typical annotations correspond to WCAG 2.2 criteria and to implementation choices.

AnnotationRelated WCAG criterionTypical implementation
Heading level1.3.1 Info and relationshipsNative h1 to h6 elements
Focus order2.4.3 Focus orderLogical DOM order, no positive tabindex
Accessible name4.1.2 Name, role, valueVisible label or aria-label
Alternative text1.1.1 Non-text contentalt attribute or empty alt for decoration
Error message3.3.1 Error identificationText linked with aria-describedby
Focus indicator2.4.7 Focus visibleVisible outline style on focus
Mapping annotations to WCAG and code

A sound principle is to prefer native HTML semantics over ARIA. An annotation that says “button” is better than one that prescribes a generic element with an added role, because native elements provide keyboard behavior and states automatically.

Annotation methods and tools

Teams create accessibility annotations with numbered callouts, color-coded overlays or component-level specifications, usually inside the design tool or in a linked document. The method matters less than consistency and completeness across the product.

The following comparison helps teams choose a format.

ApproachStrengthsLimitations
Annotation kit stickersFast, visual, standardized symbolsCan clutter complex screens
Design tool pluginsSemi-automated, consistent outputPlugin may miss custom patterns
Component documentationDefined once, reused everywhereDoes not cover page-level context
Separate specification documentDetailed, easy to reviewDrifts out of sync with designs
Comparison of annotation approaches

Mature teams combine methods: design system components carry built-in accessibility specifications, while page-level annotations cover headings, landmarks, focus order and content that is unique to each screen. Plugins such as Stark can help with contrast checks and annotation workflows.

When and how to annotate in the design process

Annotations work best when they are created during design, not after development. Adding them at the wireframe stage reveals structural problems such as missing headings or illogical reading order while changes are still cheap.

  1. Define page structure first: landmarks and the heading outline.
  2. Mark the focus order for every interactive element, including modals and menus.
  3. Name every control, especially icon-only buttons and form fields.
  4. Describe states and announcements, such as loading, errors and expanded panels.
  5. Review annotations with developers before implementation begins.

Annotations should be reviewed by someone with accessibility expertise and verified after build through keyboard testing and screen reader testing. An annotation is a specification, not proof that the result is accessible.

Common mistakes in accessibility annotations

Most annotation problems come from vague, incomplete or contradictory notes that force developers to guess. The table lists frequent mistakes and how to correct them.

MistakeConsequenceFix
“Make it accessible” as the only noteDeveloper guesses semanticsSpecify element, name and behavior
Heading levels chosen by font sizeBroken document outlineAnnotate levels by structure
No focus order for overlaysKeyboard focus escapes the dialogSpecify focus trap and return point
Overuse of ARIA rolesConflicting or redundant announcementsPrefer native elements
Annotations not updatedCode follows outdated intentVersion annotations with designs
Annotation mistakes and fixes

Another frequent failure is annotating only the default state of a screen. Interfaces change constantly: menus expand, validation errors appear, content loads asynchronously and toasts disappear after a few seconds. Each of these moments needs a note describing what is announced, where focus moves and how long content stays visible, because these dynamic behaviors are exactly where keyboard and screen reader users most often get lost.

Finally, annotations should avoid prescribing exact code when the intent is enough. A note such as “announce the number of results after filtering” lets developers choose a suitable live region technique, while an overly specific instruction can lock in a pattern that behaves poorly in some screen reader and browser combinations.

The idea in brief

A design picture shows how a screen looks, but it cannot show how it sounds to someone using a screen reader or how it works with only a keyboard. Accessibility annotations are the instructions that fill this gap.

They work like the notes an architect adds to a building plan: where the ramps go, which doors open automatically, and where the signs in Braille belong. Without those notes, builders might create a beautiful building that many people cannot enter. Clear annotations help developers build products everyone can use.

A practical scenario

A design team at a regional bank is preparing a new loan application form with five steps, a date picker and several icon-only help buttons. In earlier releases, accessibility audits found missing labels and a dialog that keyboard users could not close, which required costly rework after launch.

For the new form, the designer annotates each screen with the heading outline, a numbered focus order, accessible names for every icon button, error message associations and the focus behavior of the help dialog, including where focus returns when it closes. Developers implement the form from these notes, and a follow-up test with NVDA, VoiceOver and keyboard-only navigation finds only two minor issues instead of dozens, both fixed before release.