Accessibility & QA · CC BY 4.0
Review markup against WCAG 2.1 AA
Inspect markup for common accessibility issues and request criterion-specific fixes.
Copies include creator credit and license links.
The prompt
Audit this markup for WCAG 2.1 AA compliance.
Markup:
{html_or_component_markup}
Color values (if contrast should be checked): {foreground_background_colors}
Check against these commonly-violated AA criteria, reporting only what
applies to this specific markup:
1. 1.4.3 Contrast (Minimum) — text contrast ratio at least 4.5:1 (3:1 for
large text ≥18pt/14pt bold). Only checkable if actual color values are
given.
2. 1.1.1 Non-text Content — images convey meaning need alt text; purely
decorative images should have empty alt="" (not a missing attribute,
which some screen readers announce as the filename).
3. 2.1.1 Keyboard — interactive elements (custom buttons/dropdowns built
from <div>/<span> instead of <button>/<select>) must be reachable and
operable via keyboard (tabindex, key event handlers), not mouse-only.
4. 2.4.7 Focus Visible — interactive elements must have a visible focus
indicator; check for `outline: none` or similar with no replacement
focus style.
5. 1.3.1 Info and Relationships — semantic structure (headings in order,
lists as <ul>/<ol>, tables with <th>) rather than purely visual
structure built from generic <div>s with no semantic markup.
6. 3.3.2 Labels or Instructions — form inputs have an associated <label>
(via `for`/`id` or wrapping), not just a visually adjacent placeholder
text that disappears on input and isn't announced as a persistent
label by screen readers.
7. 4.1.2 Name, Role, Value — custom interactive components (not native
HTML elements) expose the correct ARIA role/state (aria-expanded,
aria-selected, etc. as appropriate to the widget pattern).
For each finding: cite the criterion number + name, the line, why it
fails, and the fix.Source & permission
Original prompt in Awesome AI Prompt Library ↗
ai-prompt-library-team. Licensed under Creative Commons Attribution 4.0. Read the source license.
Changes: Prompt text unchanged. Extracted from the source document; title and usage guidance added by LandingPagePrompts.
You may share and adapt this prompt, including commercially, under its license. Retain the creator credit, source and license links, and identify your changes. No creator endorsement is implied.