C Books Guide and List
C++ Books Guide and List
Best Java Books

3,749 questions

4,049 answers

114 comments

10,705 users

How to use <tbody> tag?

0 votes
27 views
asked Apr 23, 2014 by smith Geek (15,340 points)

1 Answer

0 votes
The <table> element can be sectioned into three horizontal parts: <thead>, <tbody>, and <tfoot>.
 
    <thead> contains the rows at the head of the <table>.
    <tbody> contains the rows in the body of the <table>.
    <tfoot> contains the rows at the foot of the <table>.
 
Using <thead>, <tbody>, and <tfoot> elements with the <table> element tells browsers the breakdown of the sections and allows you to apply different styles to the heading, body, and footer.
Example
 
<html>
<body>
     <table>
          <thead>
               <td>This cell is in the thead rows group.</td>
               <td>This cell is in the thead rows group.</td>
               <td>This cell is in the thead rows group.</td>
          </thead>
          <tbody>
               <tr>
                    <td>This cell is in the tbody rows group.</td>
                    <td>This cell is in the tbody rows group.</td>
                    <td>This cell is in the tbody rows group.</td>
               </tr>
               <tr>
                    <td>This cell is in the tbody rows group.</td>
                    <td>This cell is in the tbody rows group.</td>
                    <td>This cell is in the tbody rows group.</td>
               </tr>
          </tbody>
          <tfoot>
               <td>This cell is in the tfoot rows group.</td>
               <td>This cell is in the tfoot rows group.</td>
               <td>This cell is in the tfoot rows group.</td>
          </tfoot>
     </table>
</body>
</html>
 
answered Apr 23, 2014 by rock Expert (14,990 points)

Related questions

0 votes
1 answer 41 views
41 views asked Apr 23, 2014 by rock Expert (14,990 points)
0 votes
1 answer 30 views
30 views asked Apr 23, 2014 by rock Expert (14,990 points)
0 votes
1 answer 30 views
30 views asked Apr 23, 2014 by rock Expert (14,990 points)
0 votes
1 answer 28 views
28 views asked Apr 23, 2014 by smith Geek (15,340 points)
0 votes
1 answer 26 views
26 views asked Apr 23, 2014 by rock Expert (14,990 points)
...