Favorites

ARIA gridcell Role

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

The gridcell role marks a cell in a grid or treegrid, an interactive table that users move around with the arrow keys.

☕
Enjoying this site?

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

Buy us a coffee

Description

The gridcell role identifies a cell in a grid or treegrid. Unlike a plain table cell, a grid cell is part of an interactive widget: users move between cells with the arrow keys, and cells may be selectable, editable or contain controls.

Grid cells must be owned by an element with the row role, which in turn is inside a grid, treegrid or a rowgroup within one. A <td> inside a <table role="grid"> has the gridcell role automatically.

Use aria-selected for selectable cells and aria-readonly for cells that can't be edited. Header cells use columnheader or rowheader instead.

Use the native HTML <td> element where you can: it already has the gridcell role, with the expected keyboard and browser behavior built in.

Properties

Category
Widget
HTML equivalent
<td>
Accessible name from
contents, author
Required parent role
row
Required child roles
None

ARIA Attributes

Syntax

<element role="gridcell">

Example

<table role="grid" aria-label="Seats">
<tr><td role="gridcell" tabindex="0" aria-selected="false">A1</td><td role="gridcell" tabindex="-1" aria-selected="true">A2</td></tr>
<tr><td role="gridcell" tabindex="-1" aria-selected="false">B1</td><td role="gridcell" tabindex="-1" aria-selected="false">B2</td></tr>
</table>
<style>[aria-selected=true]{background:#2563eb;color:#fff}</style>

Browser Support

The following information will show you the current browser support for the gridcell 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