Monday, August 16, 2010

EXPLAIN THE DIFFERENCE BETWEEN TABLE HEADER AND TABLE CAPTION ....?

Good Afternoon friends...
            
TABLE HEADER:: In very simple term Table header is used to give heading to the column of table. If Student is table the its column heading are NAME, AGE, CLASS, ROLL.NO etc. All these are used used as Table Heading.

Example:: <table border="1">
                   <tr>
                         <th>NAME</th>    <th>ROLL.NO</th>   <th>AGE</th>
                   </tr>
                   <tr>  
                         <td>ASHISH</th>    <th>81001218003</th>   <th>23</th>
                    </tr>
                   </table>  .................. Here in this examle we use table tag to create a table with border size '1', and we create three column NAME, ROLL.NO & AGE in a single row with the help of <th> tag. Note these column names are table heading.

Table Caption:: If we wants to give name to the table the we use <CAPTION> tag within <table></table> but immediate after <table> tag. This caption can either appear above or below the table. This can be indicated with the ALIGN attribute.

Example ::<table border="1">
                  <caption>STUDENT</caption>
                  <tr>
                           <th>NAME</th><th>COURSE</th>
                  </tr>
                  <tr>
                           <td>ASHISH</td><td>MCA</td>
                  </tr>
                  </table>

                  

        

No comments:

Post a Comment