Open In App
Related Articles

HTML tbody Tag

Improve Article
Save Article
Like Article

The <tbody> tag in HTML is used to make a group of the same type of content of body element. This tag is used in HTML table with header and footer which is known as “thead” and “tfoot”. <tbody> tag is child tag of table tag and parent tag of <tr> and <td> tags.


<tbody> // Table contents   </tbody>

Attributes: Some attributes are supported by <tbody> tag in HTML4.1 but not supported in HTML5. The list of attributes is given below:  

  • align: Set the alignment of the content.
  • valign: Set the vertical alignment of the content.
  • char: Set the alignment of content inside <thead> tag to a character.
  • charoff: It is used to set the characters the content inside the <thead> tag aligned from the character specified by the char attribute.



<!DOCTYPE html>
        <h2>tbody Tag</h2>
                    <th>User Id</th>
            <!-- tbody tag starts from here -->
            <!-- tbody tag ends here -->


Supported Browsers: 

  • Google Chrome 1+
  • Internet Explorer
  • Firefox 1+
  • Opera
  • Safari
  • Edge 12+

Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Last Updated : 23 Aug, 2022
Like Article
Save Article
Similar Reads
Complete Tutorials