HTML Tag Detective

Last modified on
Paste your HTML code here ⤵

How to Use

Paste or type your HTML code onto the editor above, the analysis will be shown automatically. You can also hit the 🔎 Check button to analyse it.

This only works for HTML code.


The Detection

Here's what it can detect:

  • Unclosed tags.

    A tag was opened but never got its matching closer anywhere in the document.

  • Mismatched tags.

    A closing tag exists, but it doesn't match whatever's actually sitting innermost on the stack at that point. For instance, a stray </p> appearing where a </div> was expected.

    This is the sneaky one!

    It often looks like an unrelated tag further up is broken, when really it's this mismatch throwing everything off further down the line.

  • Stray closers.

    A closing tag turns up with no opener at all preceding it anywhere.


Attribution

For the editor wrapper above, I use 🏆 CodeMirror.