Los 10 errores de HTML más comunes
Desarrolladores web de todo el mundo han encontrado
469 millones de problemas de HTML
en 13 millones de páginas web validadas.
Estos son los problemas más comunes detectados por Rocket Validator.
Última actualización: sábado, 15 de agosto de 2026
1. El elemento "X" no puede ser hijo del elemento "Y" en este contexto. 50.59%
El elemento X no está permitido como elemento hijo de Y. Por ejemplo, un elemento <ul> no puede tener un elemento hijo <div>.
2. Atributo "X" no permitido en el elemento "Y" en este punto. 19.83%
Se ha encontrado un atributo no válido en un elemento. Compruebe la etiqueta afectada para asegurarse de que los atributos están bien formados, y si lo están puede considerar el uso de atributos de datos personalizados.
3. ID “X” duplicado. 14.83%
El atributo id se utiliza para identificar un único elemento dentro de un documento, y se requiere que sea único. Compruebe si hay ID repetidos en el documento.
4. Un elemento <img> debe tener un atributo "alt", salvo en determinadas condiciones. Para más detalles, consulte la guía para proporcionar alternativas de texto a las imágenes. 4.91%
Las etiquetas <img>, utilizadas para incluir imágenes en un documento, requieren un atributo alt para describir el contenido de la imagen. Esto es esencial para los usuarios que no pueden ver la imagen (como los usuarios de lectores de pantalla), o como texto alternativo cuando la imagen no puede mostrarse.
5. Element “img” is missing one or more of the following attributes: “src”, “srcset”. 2.14%
Every <img> element must include at least a src or a srcset attribute to be valid HTML.
6. Valor incorrecto "" para el atributo `target` en el elemento `<a>`: El nombre del contexto de navegación debe tener al menos un carácter. 1.84%
El atributo target de los elementos <a> no puede estar vacío.
7. No hay espacio entre atributos. 1.73%
Los atributos de los elementos HTML deben ir separados por espacios.
8. When the “srcset” attribute has any image candidate string with a width descriptor, the “sizes” attribute must also be specified. 1.59%
When an img element's srcset attribute contains image candidates with width descriptors (e.g., 400w, 800w), the sizes attribute must also be present. Without sizes, the browser has no way to determine how large the image will appear in the layout, making it impossible to choose the correct source from the candidate list. To fix this, add a sizes attribute that describes the image's expected display width at various viewport sizes.
9. The heading X (with computed level M) follows the heading Y (with computed level N), skipping Z heading level.". 1.29%
A heading level has been skipped in the document's heading hierarchy, such as jumping from an <h2> directly to an <h4>.
10. Duplicate attribute “X”. 1.26%
Each HTML element must have unique attribute names — no attribute can appear more than once on the same element. When the W3C validator reports "Duplicate attribute," it means an attribute like id, class, or any other has been specified two or more times on a single element. To fix this, merge the duplicate attributes into a single declaration or remove the unintended repetition.
Validate at scale.
Ship accessible websites, faster.
Automated HTML & accessibility validation for large sites. Check thousands of pages against WCAG guidelines and W3C standards in minutes, not days.
Pro Trial
Full Pro access. Cancel anytime.
Start Pro Trial →Join teams across 40+ countries