Semantics

A row of cells in a tabular container.

Additional info from the ARIA specification

Rows contain cell or gridcell elements, and thus serve to organize a table, grid, or treegrid.

While the row role can be used in a table, grid, or treegrid, the semantics of aria-expanded, aria-posinset, aria-setsize, and aria-level are only applicable to the hierarchical structure of an interactive tree grid. Therefore, authors MUST NOT apply aria-expanded, aria-posinset, aria-setsize, and aria-level to a row that descends from a table or grid, and user agents SHOULD NOT expose any of these four properties to assistive technologies unless the row descends from a treegrid.

Authors MUST ensure elements with role row are accessibility children of an element with the role table, grid, rowgroup, or treegrid.

Abstract Role

  • CompositeRepresents a container for navigating interactive descendants.

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

May be an interactive Widget or non-interactive Structure, depending on the context.

Content Category

Only Used with Specific Parent Roles

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

  • rowgroup
  • grid
  • table
  • treegrid

Allowed Descendants

Specific Guidance

Only cell, rowheader, and columnheader roles 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.

  • tr

Explicitly allowed

  • None

Elements that can have any role

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