Validador HTML
Valida errores comunes y mejores prácticas de HTML.
Checks tag nesting and closing. Not a full W3C conformance check.
Overview
Broken tag nesting is the classic cause of layouts that collapse in one
browser but not another. This tool scans your markup with a stack-based
checker and reports every structural problem with its line number: tags
that are never closed, closing tags with no matching opener, and elements
closed in the wrong order. Void elements and comments are handled
correctly, so <img> or <!-- note --> never produce false positives.
How to use
- Paste your markup into the HTML field — validation runs on every keystroke.
- Read the issue list below the field; each entry shows
Line N:and the problem. - Fix the flagged lines until you see No nesting issues found.
Examples
<div><p>unclosed</div>→Line 1: <p> is not closed before </div><section></article>→Line 1: Unexpected closing </article><ul><li>one→Line 1: <ul> is never closedandLine 1: <li> is never closed
Notes
This checks tag nesting and closing only — it is not a full W3C conformance check. Attribute syntax, entity encoding, and semantic rules are out of scope. Issues are sorted by line number, so work top-down: one missing close tag often cascades into several reports.