Favorites

ARIA tabpanel Role

tabpanel
ARIA Widget RoleThis ARIA role is supported by all modern browsers.
Updated 28th November 2026

The tabpanel role marks the content panel that belongs to a tab in a tabbed interface. Only the panel of the selected tab is shown.

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee

Description

The tabpanel role identifies a container for the content of a tab. Each element with the tab role controls one tab panel, and only the panel for the selected tab is shown; the others are hidden, typically with the hidden attribute.

Label each panel with its tab using aria-labelledby, and point the tab at the panel with aria-controls. If the panel doesn't start with a focusable element, give it tabindex="0" so keyboard users can move into it from the tab list with Tab.

Properties

Category
Widget
HTML equivalent
None
Accessible name from
author
Required parent role
None
Required child roles
None

ARIA Attributes

Required
None
Supported
None
Prohibited
None
Global
All global ARIA attributes can also be used, such as aria-label, aria-labelledby, aria-describedby, aria-hidden.

Syntax

<element role="tabpanel">

Example

<div role="tablist" aria-label="Info">
<button role="tab" id="tb1" aria-selected="true" aria-controls="tp1">Description</button>
<button role="tab" id="tb2" aria-selected="false" aria-controls="tp2" tabindex="-1">Reviews</button>
</div>
<div role="tabpanel" id="tp1" aria-labelledby="tb1" tabindex="0"><p>A comfy chair.</p></div>
<div role="tabpanel" id="tp2" aria-labelledby="tb2" tabindex="0" hidden><p>5 stars!</p></div>

Browser Support

The following information will show you the current browser support for the tabpanel ARIA role. Hover over a browser icon to see the version that first introduced support for this ARIA role.

This ARIA role is supported by all modern browsers.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported
☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee