<tbody>...</tbody>

HTML4 HTML5

The <tbody> tag defines table body content[cite: 3]. Combined with <thead> and <tfoot>, it forms main table structure: header, body, and footer[cite: 3].

Opening and closing tags are optional[cite: 3].

Attributes:

align="..." - (left, right, center, justify, char) specifies text alignment in rows inside <tbody>[cite: 3]. Not present in HTML5[cite: 3].

char="..." - specifies character alignment point for table body cells[cite: 3]. Not present in HTML5[cite: 3].

charoff="..." - character offset for alignment point[cite: 3]. Not present in HTML5[cite: 3].

valign="..." - (top, middle, bottom, baseline) vertical alignment of cell contents[cite: 3]. Not present in HTML5[cite: 3].

Example

Code:

<table>
  <thead>
    <tr>
      <th>Year</th>
      <th>Income</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>2000</td>
      <td>$25,000</td>
    </tr>
    <tr>
      <td>2010</td>
      <td>$69,000</td>
    </tr>
  </tbody>
  <tfoot>
    <tr>
      <td>Total</td>
      <td>$94,000</td>
    </tr>
  </tfoot>
</table>

The browser will interpret this code as follows:

YearIncome
2000 $25,000
2010 $69,000
Total $94,000