# html-a11y-check

Check HTML pages for common WCAG failures (missing lang/title/alt/labels, heading skips, empty links and buttons, duplicate ids)

- **Space:** accessibility-public (https://github.com/Tech-Realm/space-accessibility-public/tree/main/html-a11y-check)
- **Level:** L2 (as the registry reports it)
- **Keys it needs (names only):** none
- **Tools:** python3
- **Routes:** local-python, axe-cli; checks: 2
- **Uses:** new (no recorded use yet)
- **Install:** `logicpacks pack use accessibility-public/html-a11y-check` or MCP `get_pack accessibility-public/html-a11y-check`
- **Files:** CHANGELOG.md, code/a11y.py, outcome/EVIDENCE.md, outcome/checks.yaml, outcome/fixtures/bad.html, outcome/fixtures/good.html, outcome/results.json, pack.yaml, spec/SPEC.md, spec/source.md

## Purpose (spec/SPEC.md)

## Goal

A per-file list of automated WCAG 2.2 failures with the success criterion for each, from static HTML (built site output or saved pages).

Verified by: Bad fixture reports the 9 planted failures with their SC numbers; good fixture reports 0.

## Steps

1. Build the site, then run `python3 code/a11y.py dist/`.
2. Fix each failure in the source templates.
3. Re-run, then do a manual keyboard pass (Tab through the page) and a screen-reader spot check (VoiceOver: Cmd+F5).

## Edge cases

- Content injected by JavaScript is not seen; for SPAs save the rendered HTML first or use axe-core in a browser.
- alt="" is correct for decorative images and is not flagged.

## Don'ts

- Don't claim WCAG conformance from automated checks alone; automated tools catch roughly a third of issues, so do a manual keyboard and screen-reader pass too.



---

Canonical URL: https://logicpacks.io/packs/accessibility-public/html-a11y-check

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](/llms.txt). Plain facts: [/about.md](/about.md). Safety: [/safety.md](/safety.md).
