Skip to content
TrySitePrice

HTML Validator

Fetch a page or paste markup and get the findings with their sources attached: which came from the HTML Standard’s own wording, and which are what a parser observed about the document’s shape.

We check the markup the server actually served, not a rendered DOM.

Questions about markup validation

01What does this check, exactly?

Two kinds of thing, kept apart in the result. The id and lang rules are quoted from the HTML Standard, and the page names the revision it was read at. The structural findings — an element never closed, an end tag with nothing to close, an end tag on a void element, an attribute written twice — are what a tag-stack parser observed. The page labels each finding so you can see which is which.

02Is this a full HTML conformance checker?

No, and it says so in the result rather than implying otherwise. A checker implementing the whole standard — every content model, every attribute value grammar, the full parse-error list — will find more. What is here is checked against a source that is named, which is the part most quick validators skip.

03Why is a duplicated id an error rather than a style issue?

Because the standard is direct about it: the id attribute value must be unique amongst all the IDs in the element’s tree and must contain at least one character, and the value must not contain any ASCII whitespace. A duplicate breaks getElementById, breaks a fragment link, and breaks a label’s for association — always to the first match, which is why the symptom is usually a control that will not focus.

04My list has no </li> tags. Why is that not flagged?

Because HTML lets you leave those out, and a checker that reports them is unusable. The parser here honours implied end tags: a new <li> closes the previous one, a block element closes an open <p>, a new table cell closes the last. Only elements whose end tag is actually required get reported when they are missing.

05Is a missing lang attribute a problem?

It is reported as a note, never a warning, and that is deliberate. The page read for this tool states that the lang value must be a valid BCP 47 language tag or the empty string, and nowhere states that a document is required to have one. Plenty of advice says otherwise; this page follows the source it can cite.

06Why is a missing doctype only a note?

Same reason. A page without one is parsed in quirks mode by browsers, which is a real consequence, but the page read for this tool does not state the requirement — so it is reported and not graded. If you are chasing a layout that renders differently from everyone else’s, a missing doctype is still the first thing to check.

07Does it validate the rendered DOM or the served markup?

The served markup. The URL mode fetches the page and checks the bytes the server returned, before any script runs. That is what a crawler parses too, so it is the right denominator for both correctness and indexing — but it means markup a framework writes in the browser is not in scope. Paste mode exists for checking that output.

08Is pasted markup stored?

No. It is parsed for the one request and the findings are the only thing returned. Nothing is rendered either, so markup from a page you do not control cannot execute anything here.

Related checks

Broken nesting changes what a crawler reads, so the natural pair is the on-page SEO analyzer and every meta tag on the page. Structured data embedded in the same markup is checked by the schema validator.