Skip to main content

Los 10 errores de HTML más comunes en Portugal

Desarrolladores web de todo el mundo han encontrado
482 millones de problemas de HTML
en 13 millones de páginas web validadas.
Estos son los problemas más comunes detectados por Rocket Validator en sitios web de Portugal.

Última actualización: martes, 20 de octubre de 2026

1. Atributo "X" no permitido en el elemento "Y" en este punto. 31.79%

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.

2. ID “X” duplicado. 24.66%

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.

3. El elemento "X" no puede ser hijo del elemento "Y" en este contexto. 22.97%

El elemento X no está permitido como elemento hijo de Y. Por ejemplo, un elemento <ul> no puede tener un elemento hijo <div>.

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

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

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

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

El atributo target de los elementos <a> no puede estar vacío.

7. Duplicate attribute “X”. 2.86%

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.

8. CSS: Parse Error. 1.89%

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.

9. An element with the attribute “tabindex” must not appear as a descendant of the “a” element. 1.84%

An element with a tabindex attribute must not appear as a descendant of an <a> (anchor) element. This creates conflicting focus targets within an interactive element, confusing keyboard navigation and assistive technologies. To fix this, remove the tabindex attribute from any descendant elements inside the <a> element, or restructure your markup so that interactive or focusable elements are not nested inside links.

10. Al elemento "X" le falta el atributo requerido "Y". 1.77%

El elemento X requiere un atributo Y, pero no está presente. Comprueba ese elemento y añade el atributo requerido, como en <X Y="value">.

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