Semantics

A cell in a tabular container.

Additional info from the ARIA specification

See related gridcell.

Authors MUST ensure elements with role cell are the accessibility children of an element with the role row.

Abstract Role

  • StructureRepresents a non-interactive part of a page that organizes content into coherent units.

Content Category

Only Used with Specific Parent Roles

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

  • row

Allowed Descendants

Flow Children Allowed

No main element descendants allowed.

Usage

Allowed HTML elements

Implicit semantics

These elements have the role semantics by default, without needing to set the role attribute. Reach for elements with native semantics first when choosing how to implement a role in your content.

  • td

Explicitly allowed

  • th[role=cell]

Elements that can have any role

  • abbr[role=cell]
  • address[role=cell]
  • b[role=cell]
  • blockquote[role=cell]
  • canvas[role=cell]
  • cite[role=cell]
  • code[role=cell]
  • custom-element[role=cell]
  • data[role=cell]
  • del[role=cell]
  • dfn[role=cell]
  • div[role=cell]
  • em[role=cell]
  • figure[role=cell]
  • i[role=cell]
  • ins[role=cell]
  • kbd[role=cell]
  • mark[role=cell]
  • output[role=cell]
  • p[role=cell]
  • pre[role=cell]
  • q[role=cell]
  • samp[role=cell]
  • small[role=cell]
  • span[role=cell]
  • table[role=cell]
  • tbody[role=cell]
  • tfoot[role=cell]
  • thead[role=cell]
  • time[role=cell]
  • u[role=cell]
  • var[role=cell]