Thursday, 5 July 2012

THEAD


thead
Table header. Along with tfoot and tbodythead can be used to group a series of rows. thead can be used just once within a table element and should appear before a tfoot and tbody element.
Optional Attributes
  • align can be used to horizontally align the cells within the element. The value can be leftcenterrightjustify or char.
  • valign can be used to vertically align the cells within the element. The value can be topmiddlebottom or baseline.
  • char can be used to specify a character with which cells will align, such as a decimal point. It is not supported by any major browser.
  • charoff can be used to specify the number of pixels the alignment should be offset from the char character. It is not supported by any major browser.
Example

<table>
        <thead>
               <tr>
                       <th>Header 1</th>
                       <th>Header 2</th>
                       <th>Header 3</th>
               </tr>
        </thead>
        <tfoot>
               <tr>
                       <td>Footer 1</td>
                       <td>Footer 2</td>
                       <td>Footer 3</td>
               </tr>
        </tfoot>
        <tbody>
               <tr>
                       <td>Cell data 1</td>
                       <td>Cell data 2</td>
                       <td>Cell data 3</td>
               </tr>
               <tr>
                       <td>Cell data 4</td>
                       <td>Cell data 5</td>
                       <td>Cell data 6</td>
               </tr>
               <tr>
                       <td>Cell data 7</td>
                       <td>Cell data 8</td>
                       <td>Cell data 9</td>
               </tr>
        </tbody>
</table>

No comments:

Post a Comment

Physics basic inventions and inventors

1.Which instrument is used to measure altitudes in aircraft's ? Audiometer Ammeter Altimeter Anemometer Explanation : ...