Skip to content
Jellykit

HTML Lint Checker for Common Mistakes

Checks HTML for unclosed tags, duplicate IDs, missing alt text and other common mistakes, listing each with its line and column.

  • Runs on your device
  • Works in the background
Loading tool

About HTML Lint Checker for Common Mistakes

Paste HTML or drop an .html file to find the mistakes that most often break a page or its accessibility: elements that are never closed or closed in the wrong order, IDs used twice, repeated attributes, images without alt text, empty src attributes, stray < and > characters, obsolete elements, and a page without a doctype, title, language or character encoding.

This is a linter for common mistakes, not a full conformance check against the HTML standard: HTML that passes can still have problems these rules do not look for. Each rule can be switched off, and the HTML is only read as text. It is never rendered, run or sent anywhere.

How it works

  1. Line endings are read the same whether they are Windows (CRLF), Unix (LF) or old Mac (CR), so the line numbers match your editor.
  2. The HTML is tokenized as text by the htmlhint library in a background thread, with the rules you have switched on. The contents of script and style elements are not read as markup.
  3. Every finding is shown with its line, its column, the rule it breaks and a description of the problem. Columns count characters from 1, a tab or an emoji as one; for a problem with an attribute, the column points just after the element’s name.
  4. The check stops after ten seconds, and lists the first 500 findings with a count of the rest.

Questions

Is this a full HTML validator?

No. It is a linter for common mistakes with 13 rules, not a conformance check against the HTML standard. It does not check which elements may contain which, or every attribute value. A page with no findings can still be invalid.

Which rules are on?

All of them except “Form fields have a label”, which only recognises a <label for> pointing at the field’s id and would report fields wrapped in their label. Choose Fragment to skip the four rules that only apply to a whole page: doctype, title, language and character encoding.

Why is my unclosed <p> or <li> reported when browsers accept it?

The HTML standard lets some end tags be left out, but this check expects every element that is not empty to be closed explicitly. Closing them avoids surprises when the markup is edited later; if you leave them out on purpose, switch off “Tags closed and matched”.

Does a comment in my HTML change the rules?

No. Comments that would switch rules on or off from inside the file are ignored; only the switches in this tool decide which rules run.

How much HTML can it check?

Up to 1 MB of text or a 1 MB file. A document with an enormous number of stray < or > characters can take longer than the ten-second limit; switching off the “Stray < and > escaped” rule usually helps, and otherwise checking it in smaller pieces does.

Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.