Name
tbody — HTML 4.01 | HTML5
Synopsis
<tbody> . . . </tbody>
Defines a row or group of rows as the “body” of the table. It
must contain at least one row element (tr
). “Row group” elements (tbody
, thead
, and tfoot
) could speed table display and provide
a mechanism for scrolling the body of a table independently of its
head and foot. Row groups could also be useful for printing long
tables for which the head information could be printed on each page.
The char
and charoff
attributes are not well
supported.
Start/End Tags
HTML: Optional/Optional; XHTML: Required/Required
Attributes
Core, Internationalization, Events, HTML5 Global Attributes
align="left|right|center|justify|char"
Not in HTML5. Specifies the horizontal alignment of text in a cell or cells. The default value is
left
. Thealign
attribute as it applies to table cell content was not deprecated in HTML 4.01/XHTML but has been removed from HTML5 in favor of style sheet controls.char="
character
"
Not in HTML5. Specifies a character along which the cell contents will be aligned when
align
is set tochar
. The default character is a decimal point (language-appropriate). This attribute is generally not supported.charoff="
length
"
Not in HTML5. Specifies the offset distance to the first alignment character on each line. This attribute is generally not supported.
valign="top|middle|bottom|baseline"
Not in HTML5. Specifies the vertical alignment of text in the cells of a column.
Example
See table.
Get HTML & XHTML Pocket Reference, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.