Browser-based accessibility tool · your HTML is parsed here, never run or sent

HTML Accessibility Checker

Paste a page or a component, or drop an .html file, and get a list of static accessibility problems with the WCAG criterion each one maps to. The page is parsed into an inert document; scripts do not run.

This is a first-pass linter, not an accessibility audit. It finds missing alt text, labels, names and landmarks, and obvious ARIA mistakes. It cannot judge whether alt text is meaningful, whether focus is visible, whether the reading order makes sense, or how the page behaves with a keyboard or a screen reader. A clean report does not mean the page conforms to WCAG.

HTML

Drop an .html file

Up to 4 MB

HTML Accessibility Checker with WCAG References

Operator: Abdulla Al Fahad. How tools are built and checked

A sign-up form with a placeholder instead of a label, a button that holds only an icon, a heading in light grey at 2.85:1 against white and two elements sharing one id: each of these can be proved wrong by reading the markup, with no screen reader and no browser extension involved. This page parses HTML into an inert document and applies 43 rules to it, grouping findings by rule with the WCAG success criterion, a CSS-like path to the element and a trimmed copy of its markup. It deliberately stops where static analysis stops. Whether alt text means anything, whether focus is visible, and whether the page makes sense read aloud are questions for a person with the page running.

Key features

  • 43 rules across images, form controls, buttons and links, headings, landmarks, lists, tables, frames, media, IDs, ARIA and colour
  • Accessible names computed in the order aria-labelledby, aria-label, native label or alt or value, text content, title and then placeholder
  • Contrast ratio for text whose colour and background are both written in inline styles, with the large-text threshold applied from font size and weight
  • Full-page and fragment modes: a component pasted without html or doctype skips page-level checks instead of reporting a missing title
  • Every finding carries a CSS-like path to the element and a trimmed copy of its markup, so you can find it in a long template
  • JSON and CSV exports with the WCAG reference on every row

What the 43 checks cover and what they cannot see

Severity follows how certain the rule is. Errors are things that are wrong on the page as written: an img with no alt attribute, a form control with no name, a button with an empty name, an aria-labelledby pointing at an id that does not exist, aria-hidden on something focusable, a duplicate id. Warnings are probable problems that depend on intent: a link that says only click here, a heading level that jumps from 2 to 4, a positive tabindex, a table with no header cells. Notes are advice, such as several unlabelled navigation landmarks or a missing autocomplete token.

Contrast uses the WCAG relative luminance formula. A text element is checked when its colour and a solid background colour can both be found in style attributes on itself or an ancestor, in hex, rgb(), rgba(), hsl(), hsla() or one of about three dozen common colour names. Translucent text is composited over the background first. Normal text must reach 4.5:1; text at 24px or larger, or 18.66px or larger and bold, needs 3:1. Colours that come from class names, a style block, an external stylesheet or var() cannot be resolved here, so a page styled entirely by classes will show no contrast findings, and the report says that no contrast check was possible rather than implying a pass.

How it works

Parsing uses DOMParser in text/html mode, which is the same error-recovering parser browsers use, so unclosed tags are repaired the way a browser repairs them. The resulting document is inert: scripts do not run and nothing is fetched or displayed. Content that a script would add later does not exist in it, and neither does anything hidden behind a client-side router. Required ARIA attributes are checked for a short list of roles, for example checkbox needs aria-checked, slider needs aria-valuenow and heading needs aria-level, and only when the element is not a native control that supplies the state itself.

When to run it

  • A 14-field checkout template is linted before a pull request: the three fields whose only name is a placeholder show up as warnings, and the unlabelled card-number input as an error.
  • A legacy marketing page gets a baseline before an outside audit is commissioned, so the 40 missing alt attributes are fixed first and the auditor's time goes to keyboard and screen reader behaviour.
  • A CSV of findings goes to the content team that owns the alt text, with the element path and markup on every row.
  • A form redesign is checked to confirm that every input still has a label after the markup was rebuilt, using the form-label and label-orphan findings.
  • A design-system button component is pasted as a fragment to confirm that the icon-only variant has an aria-label.

Running a check

  1. Paste the HTML or drop a .html file; if it is a snippet, leave the mode on Detect or choose a fragment.
  2. Press Check accessibility and start with the errors, since each is a defect in the markup as written.
  3. Open the WCAG link on a rule if you need the reasoning, fix the markup, and run again; export JSON or CSV for tracking.

Example

Markup

<h2 style="color:#999999;background-color:#ffffff;font-size:16px">Sign up</h2>
<input type="email" name="email" placeholder="Email">
<button><img src="/arrow.svg" alt=""></button>

Findings

error color-contrast (1.4.3): Contrast 2.85:1 between #999999 text and #ffffff background; normal text needs 4.5:1.
warning form-label-placeholder (3.3.2): the only name for the email input is its placeholder.
note autocomplete-purpose (1.3.5): an email field with no autocomplete token.
error button-name (4.1.2): the button's only content is an image with empty alt, so it has no name.

Tips for best results

  • Fix button-name and link-name first; an unnamed control is invisible to someone using voice control or a screen reader, and these are quick to repair.
  • For icon buttons, put aria-label on the button rather than alt text on the icon; the name then survives if the icon is swapped for an SVG.
  • After fixing a duplicate id, search for for=, aria-labelledby and href="#..." that used it, because they now point at the first match.

Limits

A page that passes every check here can still fail WCAG. Keyboard operability, visible focus, reading order, meaningful link and alt text, captions, motion and zoom behaviour all need testing with the page running and, ideally, with assistive technology.

Findings about hidden elements are skipped when they are hidden with the hidden attribute, aria-hidden or an inline display:none, but not when they are hidden by a class, so a hidden menu may still produce findings.

The alt-text rules can flag file names such as IMG_2041.jpg and generic words such as image, but they cannot tell whether a plausible alt text is accurate for the picture.

A rule such as heading-order reflects document order in the markup that was pasted. A component checked alone may look out of order because the real h2 lives in another template.

Common errors and how to fix them

"The page has no <title>" on a snippet
The input was treated as a full page. Choose A fragment or component, or leave the mode on Detect and paste without a doctype.
"Colour contrast was not checked: no inline styles were found"
Contrast needs colours written in style attributes. For a class-styled page, check the final colours in your browser's developer tools, or with a contrast checker.

Frequently asked questions

Is this the same as Lighthouse or axe?

No. Those run in a live browser against a rendered page and compute real styles. This reads the HTML text you give it and applies a smaller, static set of rules, which is why it can run on a snippet and why its contrast check is limited to inline styles.

Why is a duplicate id marked against a criterion that was removed?

WCAG 2.2 dropped 4.1.1 Parsing, but repeated ids still break form labels and ARIA references, so the finding stays; the reference line says the criterion is obsolete so you are not misled.

How many findings does it list?

Every rule keeps its first 200 findings, with a note when it stops, and each rule shows 40 in the page. The JSON and CSV exports carry all that were kept.

Does it understand frameworks such as React or Vue?

Only the HTML you paste. Template syntax is not run, so paste the rendered markup from your browser's Elements panel or from a server-rendered response, and a component's output rather than its source.