Semantics

A grouping label providing a mechanism for selecting the tab content that is to be rendered to the user.

Abstract Role

WidgetRepresents a focusable, interactive element.

Content Category

Only Used with Specific Parent Roles

This role must be a direct descendant of one of the following roles:

  • tablist

Allowed Descendants

Phrasing Children Allowed

No interactive content descendants, and no descendants with a tabindex attribute specified.

Note

Children Become Presentational

Browsers automatically apply the presentation role to all descendant elements, so their semantics are not conveyed to assistive technologies.

Usage

Elements that can designate the role in HTML:

  • a­[href][role=tab]
  • button[role=tab]
  • img[role=tab]
  • div[role=tab]
  • custom-element[role=tab]