Los 10 errores de HTML más comunes
Desarrolladores web de todo el mundo han encontrado
481 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: jueves, 8 de octubre de 2026
1. El elemento "X" no puede ser hijo del elemento "Y" en este contexto. 48.55%
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. 20.76%
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. 13.82%
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.92%
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. No hay espacio entre atributos. 2.22%
Los atributos de los elementos HTML deben ir separados por espacios.
6. Element “img” is missing one or more of the following attributes: “src”, “srcset”. 2.17%
Every <img> element must include at least a src or a srcset attribute to be valid HTML.
7. CSS: Parse Error. 2.15%
The W3C validator reports a "CSS: Parse Error" when it encounters CSS code that cannot be parsed according to CSS syntax rules. This typically occurs in inline style attributes or embedded <style> blocks and is caused by issues like unclosed brackets, missing semicolons, invalid property values, or malformed syntax. Fixing the error requires locating the offending line and correcting the CSS so it conforms to valid syntax.
8. 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.99%
El atributo target de los elementos <a> no puede estar vacío.
9. Duplicate attribute “X”. 1.76%
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.
10. When the “srcset” attribute has any image candidate string with a width descriptor, the “sizes” attribute must also be specified. 1.66%
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.
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.
1K Weekly
1,000 monthly checks. Cancel anytime.
Get 1K Weekly →Join teams across 40+ countries