Skip to main content
HTML Validation

The “rowgroup” role is unnecessary for element “thead”.

About This HTML Issue

The <thead> element is exposed with the ARIA role rowgroup by default, so role="rowgroup" on it only states its built-in role a second time.

Every HTML element maps to a default ARIA role, and the table sections share one: <thead>, <tbody> and <tfoot> are all row groups. Browsers already tell screen readers that the rows inside a <thead> form a group at the top of the table. An explicit role="rowgroup" changes nothing users can notice, which is why the validator reports it as a warning rather than an error.

You'll often see this in tables generated by page builders, table plugins or content copied from online editors, which tend to stamp a role onto every table part. The rowgroup role exists for tables made from generic elements such as <div>, where the markup gives assistive technology no clue about how the rows are grouped. A real <thead> already carries that meaning, so delete the attribute. While you're there, check the rest of the table. In a native <table>, a role on <tr>, <th> or <td> is reported as an error, so remove those in the same pass.

Invalid example

<table>
  <thead role="rowgroup">
    <tr>
      <th>Feature</th>
      <th>Included</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Backups</td>
      <td>Yes</td>
    </tr>
    <tr>
      <td>Priority support</td>
      <td>No</td>
    </tr>
  </tbody>
</table>

Valid example

<table>
  <thead>
    <tr>
      <th>Feature</th>
      <th>Included</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Backups</td>
      <td>Yes</td>
    </tr>
    <tr>
      <td>Priority support</td>
      <td>No</td>
    </tr>
  </tbody>
</table>

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
€5 / week

1K Weekly

1,000 monthly checks. Cancel anytime.

Get 1K Weekly →

Join teams across 40+ countries