Developer community
0 votes
36 views
asked by Geek (15.3k points) 17 42 64 | 36 views

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 by Expert (15k points) 15 23 31

Related questions

0 votes
1 answer
asked by rock Expert (15k points) 15 23 31 | 55 views
0 votes
1 answer
asked by rock Expert (15k points) 15 23 31 | 40 views
0 votes
1 answer
asked by rock Expert (15k points) 15 23 31 | 38 views
0 votes
1 answer
asked by smith Geek (15.3k points) 17 42 64 | 35 views
0 votes
1 answer
asked by rock Expert (15k points) 15 23 31 | 42 views
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

Categories


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

3.8k questions

4k answers

117 comments

10.7k users

3,751 questions
4,046 answers
117 comments
10,709 users