HTML Validator Online

Validate HTML from a string, file or URL: unclosed and misnested tags, invalid or obsolete elements and attributes, duplicate ids, missing alt / lang.

Free tool: 20 requests per minute.

Result

Press “Run” to see the result.

Checks HTML the way a browser parser reads it and reports each problem with line, column, rule, severity and a snippet: unclosed, stray and misnested tags (<b><i></b></i>), end tags on void elements, <div/> self-closing syntax, block elements that silently close a <p>, unknown and obsolete elements (<center>, <font>, <marquee>…), obsolete presentational attributes (align, bgcolor, cellpadding…), attributes not defined for the element, invalid enumerated values (type="emial"), boolean attributes written as disabled="false", duplicate attributes and ids, broken id references (for, aria-labelledby), content-model errors (div in span, button in a, li outside a list, td outside tr, nested forms), and document checks (doctype, charset, title, viewport).

Basic accessibility rules are included: images without alt, form controls without a label, links and buttons without an accessible name, empty headings, skipped heading levels, iframes without title, zoom disabled by the viewport, autoplay with sound. Choose preset=recommended (all), standard (no accessibility rules) or a11y; turn rules off with disable=; filter with level=error|warning|info. Fragments are recognised automatically (no document-level rules).

It is a fast static checker (own engine), not the W3C Nu validator. For a full WCAG audit with axe-core use /v1/a11y-check; for SEO checks use the SEO endpoints.

Use this in your code

curl -X POST "https://apibox.io.vn/v1/html-validate" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"html":"<!doctype html>\n<html>\n<head><title>Shop</title></head>\n<body>\n<p>Intro <div>Sale</div></p>\n<img src=\"banner.png\">\n<a href=\"/cart\"><button>Cart</button></a>\n<div id=\"x\"></div><div id=\"x\" align=\"center\"></div>\n</body>\n</html>"}'

API documentation → Get a free API key

FAQ

Is this the W3C validator?

No. It is an independent checker of the most common conformance and nesting errors with exact positions; it is faster and has no rate limit for commercial use.

Does it run JavaScript?

No. Only the HTML source is checked; script and style contents are skipped.

How is it different from a11y-check?

html-validate finds markup errors plus a few accessibility basics; a11y-check runs axe-core for a full WCAG audit (contrast, ARIA, landmarks…).