li with ancestor role=tablist must have role=tab Web Standard

Description

An li element that is a descendant of a role=tablist element must not have any role value other than tab.

Help

Without a role attribute the implicit role is listitem, which is not allowed in a tablist, so an explicit role=tab attribute is needed to voice the control correctly in a screen reader.

Applicable standards

Note: Section 508 Refresh (2017) checkpoints are equivalent to WCAG 2.0 level A and level AA checkpoints. EN 301 549 checkpoints are equivalent to WCAG 2.1 level A and level AA checkpoints.

Change history

  • 6.59 Dec 2025 Added to W3 validator for ARIA 1.3.

This page describes a web site issue detected in HTML documents by SortSite Desktop and OnDemand Suite.

Rule ID: W3cHtml5AssertNestedTablistLi