# Audit an AI-Generated Website for Accessibility

Canonical: https://figment.so/blog/audit-ai-generated-website-accessibility

Run an automated scan to find possible failures, then test real tasks by hand: keyboard, focus, labels, contrast and a screen reader. Record each issue with a fix and a retest result.

**Use an automated scan to find possible failures, then test the actual tasks by hand.** A generated page can have valid-looking markup yet trap keyboard users, hide focus, or give a form field no useful name. The output of this audit is an issue ledger: each issue with a reproduction step, a fix and a retest result. It is not a certificate of WCAG conformance. [W3C says](https://www.w3.org/WAI/test-evaluate/tools/) that some accessibility checks cannot be automated.

This guide applies to a generated site you can edit and test. Test one representative page for each distinct template, plus every unique interaction such as a menu, form, dialog or carousel. Test desktop and narrow layouts, because a mobile menu can fail even when desktop navigation works.

## What goes into the issue ledger?

Use columns for page and viewport, task, expected behavior, observed behavior, severity, source or criterion, fix owner and retest evidence. A score such as "accessibility score: 90" cannot tell a developer which action fails or show that a user can complete it.

This **illustrative example** shows how to document a finding. It is not a first-hand result from a live site.

| Page and task | Observed failure | Fix | Retest condition |
| --- | --- | --- | --- |
| `/contact/`, reach email field by Tab | Hint text is the only field name | Add visible `<label for="email">Email address</label>` and matching input `id` | Label is announced and clicking it focuses the input |
| `/`, open mobile menu | Click works; Enter does nothing | Use a real `<button>` with an accessible name and expanded state | Enter and Space open it; focus reaches links |
| `/`, follow navigation | CSS removes focus outline | Restore a visible `:focus-visible` style | Focus is visible on every interactive item |

The label repair follows [W3C's form-label tutorial](https://www.w3.org/WAI/tutorials/forms/labels/). Do not replace a visible label with input hint text, because that text can vanish when a person types and can be hard to read. For a menu, prefer native button and link elements before adding ARIA to a non-interactive `div`.

## How do I test without a mouse?

Start at the address bar and move through the page with Tab and Shift+Tab. Confirm that focus follows a sensible order and stays visible. Use Enter or Space to activate controls as appropriate. Open and close menus and dialogs, confirm that focus does not disappear behind an overlay, and confirm that you can leave every control. Repeat on the mobile layout. [W3C's preliminary checks](https://www.w3.org/WAI/test-evaluate/preliminary/) give a practical keyboard sequence and warn about keyboard traps.

Check skip navigation if repeated headers make a long route. Check that a fixed header does not cover the focused item. WCAG 2.2 adds a [focus-not-obscured requirement](https://www.w3.org/WAI/standards-guidelines/wcag/new-in-22/), so a bright outline is not enough if the active control sits under a sticky bar.

## Which visual and semantic checks matter?

Check headings, lists, links, image text and contrast. Read the page in order with CSS and images considered separately. Look for one descriptive main heading, meaningful heading levels, real lists, and link text that makes sense outside its paragraph. Give informative images useful alternative text and decorative images empty alternative text. Compare AI-generated alt text with the image and its purpose before trusting it.

Measure text contrast in real states: normal, hover, focus, disabled where relevant, and text over images. WCAG's [contrast guidance](https://www.w3.org/WAI/WCAG21/Understanding/contrast-minimum) sets a 4.5:1 minimum for ordinary text at Level AA and 3:1 for qualifying large text. Check actual foreground and background colors, because a screenshot's appearance is not a measurement. Also check non-text controls and focus visibility against the applicable WCAG criteria. Do not remove the browser's default focus indicator unless the replacement is clear.

For forms, use visible labels, clear required-field instructions, useful error text and a success state users can perceive. Submit an empty form, an invalid value and a valid value. A form that looks right but never sends is a functional defect as well as a possible accessibility defect. The [form implementation guide](/blog/add-contact-form-to-ai-generated-website) covers delivery and abuse controls.

Use a screen reader on the flows that matter most: navigation, headings, form entry, error recovery and confirmation. Listen for the control name, role, state and order, and record the browser and screen reader you used. When the site has consequential tasks, ask people who use assistive technology to review it, because an automated scan cannot substitute for that experience.

## When is the audit complete?

The audit is complete when each high-impact issue has been repaired and retested on the deployed build. Run an automated checker on each template after manual repairs, and save its report as one input to the ledger, not a pass badge. Mark unresolved barriers explicitly, and hold launch when a core task cannot be completed with the keyboard or assistive technology. Content changes after this test need a final review too. Use [the launch acceptance checklist](/blog/check-ai-generated-website-before-launch) to record that decision.

## Where do these facts come from?

[W3C's evaluation tool overview](https://www.w3.org/WAI/test-evaluate/tools/), [preliminary checks](https://www.w3.org/WAI/test-evaluate/preliminary/), [form-label tutorial](https://www.w3.org/WAI/tutorials/forms/labels/) and [WCAG 2.2 changes](https://www.w3.org/WAI/standards-guidelines/wcag/new-in-22/) were accessed 2026-09-23.
