<thead> Tag in HTML 5

In this article I am going to explain about <thead> tag in html 5
  • 2129

Definition

The <thead>  tag use for defined table header. its mainly used in large table for defined table Header. <thead> tag must be in <table> tag.

Browser that supports <thead> tag

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

Lets take an example of <thead> tag

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

Output

thead.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

© 2019 DotNetHeaven. All rights reserved.