Alt Text and Headings reference: Validation Checklist
In the kit: .github/skills/alt-text-headings/references/validation-checklist.md.
-
This file as plain text, at
https://letitglow.app/ahg/kit/raw/.github/skills/alt-text-headings/references/validation-checklist.md - Everything in the kit
Copy it into ChatGPT or another assistant
Read the plain text first
Alt Text and Headings reference: Validation Checklist
Part of the alt-text-headings skill. Read this only when the task reaches these sections.
Validation Checklist
Images
- Does every
<img>have analtattribute? - Do meaningful images have descriptive alt text (verified by visual analysis)?
- Do decorative images have
alt=""? - Do functional images (in links/buttons) describe the action?
- Do complex images have extended descriptions?
- Are SVGs properly labeled or hidden?
- Are icon fonts hidden with
aria-hidden="true"? - Do icon-only buttons/links have
aria-label? - Does the alt text match what the image actually shows?
- Has the user been asked about ambiguous images?
Headings
- Is there exactly one H1 per page?
- Are heading levels sequential (no skipped levels)?
- Do headings describe their section content?
- Are heading levels chosen for structure, not appearance?
- Do modal headings start at H2?
- Does the heading outline make sense as a table of contents?
Document Structure
- Is
<html lang="...">set correctly? - Is
<title>descriptive and unique? - Are landmarks used correctly (header, nav, main, footer)?
- Is there a skip link to main content?
- Are language changes within content marked with
lang? - For SPAs: does the title update on route changes?
Media
- Do videos have captions?
- Do videos have audio descriptions for visual-only content?
- Is a transcript available for audio content?
- Is autoplay disabled or muted with visible controls?
Common Mistakes You Must Catch
alt="image",alt="photo",alt="icon"-- these describe the format, not the contentalt="IMG_20250115_143022.jpg"-- filename as alt text- Missing
altattribute entirely (screen reader reads the filename) alttext that repeats adjacent text content- Alt text that does not match what the image actually shows (verify visually)
- Decorative images with descriptive alt (creates noise)
- SVGs without
aria-hiddenor propertitle/desc - H1 used as a site logo/brand on every page instead of the page-specific title
- Heading levels chosen for font size rather than structure
<div class="heading">instead of actual heading elements- Empty headings (
<h2></h2>or headings with only whitespace) - Headings inside interactive elements (
<button><h2>Click me</h2></button>) - Missing page
<title>or generic title like "Page" on every page - Missing
langattribute on<html> - Charts and graphs with
alt="chart"instead of describing the data
Structured Output for Sub-Agent Use
When invoked as a sub-agent by the web-accessibility-wizard, consume the ## Web Scan Context block provided at the start of your invocation - it specifies the page URL, framework, audit method, thoroughness level, and disabled rules. Honor every setting in it.
You have a unique capability: you can visually analyze image files and compare them against their alt text. When the wizard calls you, look at images, evaluate whether the alt text accurately represents what the image shows, and write specific alt text suggestions based on what you see.
Return findings only as JSON matching skills/a11y-core/schemas/findings.schema.json, as the output contract in SKILL.md requires. Map each issue to the schema fields:
rule- a stable identifier for the checkwcag- criterion number and level, for example"1.4.3 AA", or"n/a"for findings outside WCAGseverity-critical,serious,moderateorminorconfidence-high,mediumorlow(omit when high)location- file path and line, or a CSS selector: somewhere a person can open (a repeated component goes incomponent)summary- one sentence naming the defect and what a user with a disability would experiencefix- the corrected code or text, in the detected framework's syntaxevidence- the offending markup or value, kept short
Confidence rules:
- high - definitively wrong:
<img>missingaltattribute entirely, heading level skipped, page missing<html lang>,<h1>absent or duplicated - medium - likely wrong: alt text present but appears generic (e.g., "image", filename) - flagged based on pattern, image not yet analyzed
- low - possibly wrong: alt text quality depends on context that requires user confirmation; heading restructuring may affect visual design