ARIA gridcell Role
The gridcell role marks a cell in a grid or treegrid, an interactive table that users move around with the arrow keys.
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
ARIA Attributes
- Required
- None
- Supported
aria-disabled,aria-errormessage,aria-expanded,aria-haspopup,aria-invalid,aria-readonly,aria-required,aria-selected- Prohibited
- None
- Global
- All global ARIA attributes can also be used, such as
aria-label,aria-labelledby,aria-describedby,aria-hidden.
Syntax
<element role="gridcell">
Example
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.
Desktop





Tablets & Mobile





