1. Computing & Technology

Discuss in my forum

<tbody></tbody>

By , About.com Guide

TBODY description:

The TBODY tag encloses the rows and cells of the body of an HTML table. Most browsers don't style the rows differently in any way, but you can use style sheets to highlight them if you like.

TBODY Web Browser Support:

HTML Versions

TBODY Attributes:

TBODY End Tag:

</tbody> optional

Contents:

Table rows. The following tags are valid within the TBODY tag:
tr

TBODY Valid Context:

The TBODY tag is valid within the following tags:
table

TBODY Usage:

table with head, body, and foot sections

<table border width="200">
  <thead>
    <tr>
      <td colspan="2">This is the header row</td>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>column 1 of the body</td>
      <td>column 2 of the body</td>
    </tr>
    <tr>
      <td>row 2 column 1 of the body</td>
      <td>row 2 column 2 of the body</td>
    </tr>
  </tbody>

  <tfoot>
    <tr>
      <td>column 1 part of the footer</td>
      <td>column 2 part of the footer</td>
    </tr>
  </tfoot>
</table>

TBODY Special Notes:

  • Long tables can be divided into multiple "body" sections to give more definition to the table.

More TBODY Information:

©2012 About.com. All rights reserved.

A part of The New York Times Company.