ⓘ tbody – table row group # T
The
tbody
element
represents a block of rows that consist of a body of data for
its parent table
element.
Permitted attributes #
- ⓘ
global attributes
- Any attributes permitted globally.
Additional constraints and admonitions #
-
The “align” attribute on the “tbody” element is obsolete.
Use CSS instead. http://wiki.whatwg.org/wiki/Presentational_elements_and_attributes
-
The “char” attribute on the “tbody” element is obsolete.
Use CSS instead. http://wiki.whatwg.org/wiki/Presentational_elements_and_attributes
-
The “charoff” attribute on the “tbody” element is obsolete.
Use CSS instead. http://wiki.whatwg.org/wiki/Presentational_elements_and_attributes
-
The “valign” attribute on the “tbody” element is obsolete.
Use CSS instead. http://wiki.whatwg.org/wiki/Presentational_elements_and_attributes
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; }