1. Home
  2. Docs
  3. SiteLint
  4. Accessibility Rules
  5. duplicated-id-attribute


Print this article


This rule determines whether attributes id and their value are defined more than once, as they should be unique.

If the id is not unique and is assigned to several elements, automation will fail because only the first element will be selected. Assistive technologies are also impacted by duplicate IDs since they frequently obtain data associated with the first id. Even if other WAI-ARIA attributes are correct, assistive technologies are unlikely to provide accurate information after the duplicate id is presented.

How to fix it

  • Ensure all attributes id have a unique value.


Accessibility, WCAG 2.1, Success Criterion 4.1.1 (Parsing), Level A

Was this article helpful to you? Yes No