HTML Validator
Find unclosed and mismatched tags, duplicate ids, images without alt text, links without href, obsolete tags and missing page basics, each with its line number.
How to check HTML
Paste your HTML
Paste or type it into the box, or press Try an example.
Read the result
A green or red message says whether it is valid, with the details below.
Fix and re-check
Edit the text and the result updates straight away.
Unclosed or mismatched tags are the usual cause.
When to use HTML Validator
A page looks broken, and you suspect an unclosed tag or a duplicate id.
You want a quick check for missing alt text, links without href and obsolete tags.
Tips for a better HTML Validator result
Paste the HTML, read each problem with its line number, and fix and re-check.
Check for a doctype, a lang attribute and a title, which are easy to forget.
HTML Validator: limits and what to check
It checks the most common problems and is not a replacement for the W3C validator.
Optional closing tags such as p, li and td are not reported, because HTML allows them to be left open.
About HTML Validator
Find the common HTML mistakes: tags that are never closed or do not match, duplicate ids, images without alt text, links without href, obsolete tags and a missing doctype, lang or title. Each problem has its line number.
FAQs
Is this the same as the W3C validator?
No. It checks the most common problems quickly, but it does not know every rule of the HTML standard.
Are optional closing tags a problem?
No. Tags such as p, li and td may be left open in HTML, so they are not reported.
Can I tidy the HTML?
Use HTML Formatter & Minifier.