jump

HTML 5: The Markup Language (ARIA Edition)

tbodytable row group # T

The tbody element represents a block of rows that consist of a body of data for its parent table element.

Permitted contents #

zero or more tr elements

Permitted attributes #

global attributes
Any attributes permitted globally.

Additional constraints and admonitions #

Tag omission #

A tbody element's start tag may be omitted if the first thing inside the tbody element is a tr element, and if the element is not immediately preceded by a tbody thead, or tfoot element whose end tag has been omitted.

A tbody element’s end tag may be omitted if the tbody element is immediately followed by a tbody or tfoot element, or if there is no more content in the parent element.

Permitted parent elements #

table

DOM interface #

interface HTMLTableSectionElement : HTMLElement {
  readonly attribute HTMLCollection rows;
  HTMLElement insertRow(optional long index);
  void deleteRow(long index);
};

Typical default display properties #

tbody {
display: table-row-group;
vertical-align: middle;
border-color: inherit; }