Skip to main content
HTML Validation

Bad value “group” for attribute “role” on element “article”.

About This HTML Issue

The role="group" attribute is not allowed on the article element because article already has an implicit ARIA role of article, and group is not among the roles permitted on this element.

The article element represents a self-contained composition in a document, such as a blog post, a news story, or a forum comment. Its implicit ARIA role is article. According to the ARIA in HTML specification, the article element can only use a limited set of roles: application, document, feed, main, none, presentation, or region. The group role is not in that list.

If you need a group role, use a generic element like div or span instead. If you need the semantic meaning of article, keep the article element and remove the role="group" attribute.

Example with the issue

<article role="group">
  <h2>Latest news</h2>
  <p>Content of the article.</p>
</article>

How to fix it

If group semantics are what you need, switch to a div:

<div role="group" aria-label="Latest news">
  <h2>Latest news</h2>
  <p>Content of the article.</p>
</div>

If article semantics are what you need, drop the conflicting role:

<article>
  <h2>Latest news</h2>
  <p>Content of the article.</p>
</article>

Find issues like this automatically

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

Help us improve our guides

Was this guide helpful?
🌍 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
$7 / 7 days

Pro Trial

Full Pro access. Cancel anytime.

Start Pro Trial →

Join teams across 40+ countries