search
Login

Categories


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

3.8k questions

4k answers

117 comments

10.7k users

0 votes
32 views
asked Geek 15.3k points 16 41 63

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 Expert 15k points 15 23 30

Related questions

0 votes
1 answer 49 views
49 views
asked rock Expert 15k points 15 23 30
0 votes
1 answer 39 views
39 views
asked rock Expert 15k points 15 23 30
0 votes
1 answer 36 views
36 views
asked rock Expert 15k points 15 23 30
0 votes
1 answer 36 views
36 views
asked smith Geek 15.3k points 16 41 63
0 votes
1 answer 33 views
33 views
asked rock Expert 15k points 15 23 30
...