The HTML Elements for the Table Body Tag

2 min read

The <tbody> HTML element is used to group one or more table rows (<tr>) in an HTML table (<table>). It is a container for the body content of the table, separating it from the table header (<thead>) and table footer (<tfoot>).

Code Example

<td>John Doe</td>
<td>Jane Smith</td>


  • align: Aligns the contents of the <tbody> to either left, right, or center.
  • charset: Specifies a character set for the contents of the <tbody>.
  • hspace: Specifies the horizontal space in pixels around the <tbody>.
  • valign: Aligns the contents of the <tbody> vertically to either the top, bottom, or middle.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from Carlos Baez

Subscribe now to keep reading and get access to the full archive.

Continue Reading