Buy this report only
A one-time payment unlocks the full results of this check. No subscription required.
Buy this reportPaste code and click “Validate HTML”.
Answers about inputs, results and tool limitations.
HTML Validator checks the tag structure of the supplied fragment, including closing tags and nesting. It is useful after manual template edits, pasted editor content or combining blocks. Include surrounding elements when an issue may depend on their nesting.
Run the check, inspect the reported line and fix issues in order. One missing tag can cause several later warnings. For example, a container opened in one block and closed incorrectly in another can cause the browser to rebuild the document. A clean result does not establish accessibility, security, CSS quality or full HTML-standard compliance; check the page in its actual template too.
It finds unclosed opening tags, closing tags without an opening partner and invalid nesting, such as <div><span></div>. Each issue includes a line and column.
Start with the first issue and inspect the surrounding block rather than inserting closing tags blindly. Repeat the check after editing. This check covers tag relationships, not CSS, structured data, accessibility or every HTML requirement.
They are HTML void elements, as are meta, link, hr, source and other standard void tags. They cannot contain nested content, so they do not need a separate closing tag.
Do not add </br> to a normal <br> just for symmetry. Container tags such as div and span follow different rules. Check the reported element and avoid confusing HTML with the syntax of other markup formats.
Yes. HTML permits omitted closing tags for some elements, including li, p, td and option. The tool does not report them when the surrounding structure permits automatic closing.
An omitted </li> is not always an error, but the rules depend on neighboring elements. Explicit closing tags are often easier to maintain. When rendering is unexpected, compare the source with the browser DOM, which may have repaired invalid nesting.