HTML Validator
Paste your HTML and get a list of structural errors and basic accessibility warnings before publishing.
Workspace · HTML Validator
Etiquetas
12
Errores
0
Avisos
0
No se han detectado problemas estructurales.
Recuerda que esta revisión no sustituye al validador oficial del W3C: comprueba también atributos, accesibilidad y contenido.
La comprobación es estructural y local: detecta cierres, duplicados, imágenes sin alt y metadatos básicos. No envía el código a ningún servidor.
How to use it
Paste the complete HTML code or a snippet into the text box.
Check the list of errors and warnings; each one indicates the affected tag or attribute.
Correct the code and paste the updated version again to check that there are no remaining issues.
Examples
Unsealed label
An open <div> nested within another that has not been closed results in an error.
Image without alt text
A <img> tag without an ‘alt’ attribute triggers an accessibility warning.
Duplicate ID
Two elements with the same ID are highlighted because they must be unique.
What you need to know
The validator analyses the structure using a tag traversal and an opening stack. It does not execute JavaScript or render the HTML, so it is safe to check snippets from any source.
It is not a substitute for the W3C validator, nor does it check all permitted attributes. It focuses on common issues that break the structure or affect basic accessibility.
Frequently Asked Questions
Related tools
Other tools that can help with similar tasks.
HTML Formatter
Indents and formats HTML to make it easy to read.
CSS Validator
Find properties or values that the browser does not recognise, and unclosed keys.
JavaScript Validator
Detect syntax errors in your code without running it, with line numbers and helpful warnings.
