Skip to content
DoItJag

HTML Checker

Find the structural mistakes that break layouts: tags that are never closed, closed in the wrong order, or closed without being opened.

or drop a file here · .html, .htm, .txt · up to 20 MB

About the HTML Checker

Browsers are forgiving: they quietly repair missing or misplaced tags. So a page can look fine to you while a sidebar lands inside the footer elsewhere. This checker reads your markup and lists the structural mistakes that browsers are papering over.

It is a quick structural check, not a full implementation of the HTML standard. For a complete conformance report, use the W3C Nu HTML Checker as well.

When to use it

  • A layout breaks in one place and you suspect a div that is never closed.
  • You want to catch accessibility basics such as missing alt text before publishing.

Worked example

The Try an example page contains two planted mistakes. The bold word in the paragraph is closed with an italic end tag, and the list is never closed. Press Check HTML.

Three errors appear with their line and column. The bold element is not closed before the paragraph ends, the italic end tag has no matching start tag, and the list is still open when the body closes. Fix the end tag and add the missing list end tag, check again, and the page reports no structural errors.

What it reports

Errors:

  • Elements that are never closed, or closed in the wrong order.
  • End tags without a matching start tag, and end tags for void elements such as img.
  • An attribute written twice on one element.
  • Duplicate, empty or space-containing id values.
  • A self-closing slash on an element such as div, which browsers ignore.

Warnings:

  • Images without an alt attribute.
  • No lang attribute on the html element, no title, or no DOCTYPE.
  • More than one main heading.

End tags that HTML allows you to omit, such as those for paragraphs, list items and table cells, are not reported as missing.

Limits

It does not check which elements may contain which, attribute values, ARIA usage or CSS. Pair it with the HTML formatter, whose indentation makes nesting mistakes easy to see.

How to use HTML Checker

  1. Paste HTML or open an .html file.
  2. Select Check HTML.
  3. Fix the errors first, then look at the warnings.

Privacy: how it works

Everything happens in your browser. Your text is not sent to any server.

Frequently asked questions

Is this the same as the W3C validator?

No. It is a quick structural check that runs in your browser. It does not check every rule of the HTML standard, such as which elements may contain which, or attribute values. For a full check use the W3C Nu HTML Checker.

Why is a missing </p> or </li> not an error?

HTML lets you leave out some end tags, such as </p>, </li> and </td>, because the browser closes them for you. Those are not reported.

What are the warnings?

Things that are allowed but usually a mistake or bad for accessibility and search: images without alt text, no lang attribute, no <title>, no DOCTYPE, or more than one <h1>.