Skip to main content

Los 10 errores de HTML más comunes

Desarrolladores web de todo el mundo han encontrado
487 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: martes, 24 de noviembre de 2026

1. El elemento "X" no puede ser hijo del elemento "Y" en este contexto. 38.52%

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. 22.30%

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. 18.36%

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. Style rule X not allowed outside an “@scope” rule in a “style” element in “body”. 4.66%

A <style> element in the <body> contains a CSS style rule that isn't inside an @scope block.

5. 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.17%

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.

6. No hay espacio entre atributos. 3.30%

Los atributos de los elementos HTML deben ir separados por espacios.

7. CSS: Parse Error. 3.01%

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.92%

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. The heading X (with computed level M) follows the heading Y (with computed level N), skipping Z heading level.". 1.75%

A heading level has been skipped in the document's heading hierarchy, such as jumping from an <h2> directly to an <h4>.

Cambie a inglés o portugués
🌍 Trusted by teams worldwide

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.

Scheduled Reports
API Access
Open Source Standards
€5 / week

1K Weekly

1,000 monthly checks. Cancel anytime.

Get 1K Weekly →

Join teams across 40+ countries