<tbody> Tag in HTML 5

In this article I am going to explain about <tbody> tag in Html 5.
  • 2417

Definition

The <tbody>  tag use for defined table structure. Its include there are three tag that use in body of table <thead> for table heading purpose. <tbody> for table body purpose. <tfoot> for table footer purpose. Its mainly used in large table for defined table header, body and footer. <tbody> tag must be used within table tag.

Browser that supports <tbody> tag

 Internet explorer, Mozilla firefox, Google chrome, Opera and Safari browsers.

Lets take an example of <tbody> tag

<html>
  <head>
    <table border="1">
       <thead>
          <tr>
             <th>Name</th>
             <th>Salary</th>
           </tr>
       </thead>
       <tfoot>
           <tr>
              <td>Sum</td>
              <td>12000</td>
           </tr>
       </tfoot>
       <tbody>
           <tr>
              <td>Mohan</td>
              <td>$5000</td>
           </tr>
           <tr>
              <td>Shayam</td>
             <td>$7000</td>
          </tr>
        </tbody>
     </table>
   </head>
</html>

Output

tbody.jpg

Further Readings

You may read more about HTML 5 Tags:  here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

© 2020 DotNetHeaven. All rights reserved.