Skip to main content
HTML Validation

Bad value “complimentary” for attribute “role” on element “aside”.

About This HTML Issue

The issue arises because “complimentary” is not a valid value for the role attribute on the <aside> element. In HTML, the role attribute is used to provide assistive technologies with extra information about the purpose of the element. The role values are defined by the WAI-ARIA specification.

The correct role for an <aside> element, if explicitly needed, would be complementary (note the spelling with an “e” instead of an “i”). However, the <aside> element has an implicit ARIA role of complementary, and thus it is typically unnecessary to explicitly specify this role unless you are using advanced ARIA techniques.

Correct Example:

<aside>
  <h2>Related Information</h2>
  <p>Here you can find additional resources and links.</p>
</aside>

If you want to explicitly define the role:

<aside role="complementary">
  <h2>Related Information</h2>
  <p>Here you can find additional resources and links.</p>
</aside>

Make sure to always use correct ARIA attributes and values to maintain accessibility for users relying on assistive technologies. For a comprehensive list of roles available for usage, refer to the WAI-ARIA specifications.

Last reviewed: April 04, 2025

Was this guide helpful?

Find issues like this automatically

Rocket Validator scans thousands of pages in seconds, detecting HTML issues across your entire site.

Ready to validate your sites?
Start your free trial today.