|
|
HTML <tbody> tag
Syntax
<tbody> - </tbody>
Definition and Usage
The TBODY element defines a group of data
rows in a table. A TABLE
must have one or more TBODY elements, which must
follow the optional TFOOT.
The TBODY end tag is always optional. The start
tag is optional when the table contains only one TBODY
and no THEAD
or TFOOT.
Optional Attributes
| Attribute |
Value |
Description |
| align |
right
left
center
justify
char |
Defines the text alignment in cells |
| char |
character |
Specifies which character to align text on.
Note: Only used if align="char"
|
| charoff |
pixels
% |
Specifies the alignment offset to the first character to
align on.
Note: Only used if align="char"
|
| valign |
top
middle
bottom
baseline |
Specifies the vertical text alignment in cells |
Standard Attributes
| id, class, title, style, dir, lang, xml:lang |
For a full description, go to Standard
Attributes.
Event Attributes
| onclick, ondblclick, onmousedown, onmouseup, onmouseover,
onmousemove, onmouseout, onkeypress, onkeydown, onkeyup |
For a full description, go to Event Attributes.
Example
| Source |
Output |
<table border = "4">
<thead>
This is the head
</thead>
<tfoot>
This is the foot
</tfoot>
<tbody>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
</tr>
</tbody>
</table> |
This is the head
This is the foot
| Cell 1 |
Cell 2 |
|
|
|