Criterio 4.1.1 de las 2.1, nivel A
Procesamiento del código
Parsing
Qué pide
Pedía que el código no tuviera errores como etiquetas mal cerradas o identificadores repetidos. La propia W3C dice ahora que en HTML se considera siempre cumplido.
A quién le afecta
Antes protegía a quien usa ayudas técnicas, que podían interpretar mal un código con errores. Hoy, en HTML, el W3C lo da por cumplido siempre, así que no se evalúa como fallo.
Un fallo típico
Una web antigua de una ferretería repite el mismo «id» en varios campos y deja etiquetas sin cerrar. Hoy los navegadores lo corrigen casi siempre, pero un «id» repetido puede romper la etiqueta de un campo.
Cómo se arregla
No hace falta nada para este criterio en HTML. Pero conviene que los «id» sean únicos, porque cada «<label for>» y cada «aria-labelledby» dependen de ello, y que las etiquetas estén bien anidadas. Pasa un validador de HTML de vez en cuando y trata los avisos como ayuda, no como obligación.
Texto original del criterio
Success Criterion 4.1.1 Parsing (Level A)
In content implemented using markup languages, elements have complete start and end tags, elements are nested according to their specifications, elements do not contain duplicate attributes, and any IDs are unique, except where the specifications allow these features.
Note 1 This success criterion should be considered as always satisfied for any content using HTML or XML.
Note 2 Since this criterion was written, the HTML Living Standard has adopted specific requirements governing how user agents must handle incomplete tags, incorrect element nesting, duplicate attributes, and non-unique IDs. [HTML] Although the HTML standard treats some of these cases as non-conforming for authors, it is considered to "allow these features" for the purposes of this success criterion because the specification requires that user agents support handling these cases consistently. In practice, this criterion no longer provides any benefit to people with disabilities in itself. Issues such as missing roles due to inappropriately nested elements or incorrect states or names due to a duplicate ID are covered by different success criteria and should be reported under those criteria rather than as issues with 4.1.1.
Web Content Accessibility Guidelines (WCAG) 2.1, W3C Recommendation 06 May 2025: https://www.w3.org/TR/WCAG21/#parsing. Copyright © 2020-2025 World Wide Web Consortium. W3C® liability, trademark and document use rules apply. Se cita sin modificar, con la licencia de documentos de la W3C. Leído el 15-11-2026.
¿Quieres saber qué falla en tu web?
Analizar una página