Sunday, 24 June 2012

html table property


HTML table property

Border property : this property define border around html table.for this purpose we pass width of border inside this property. This property is used with table tag.
 Syntex
 <table border="value in digit(1 or 2 etc.)">
 <tr>
    <th>id</th>
 </tr>
 <tr>
    <td>01</td>
 </tr>
 </table>
 
Example
idname
01anna
02fanna

Click to practice online example
Cellspancing property : this property define space between different cell in a row.for this purpose we pass width of space inside this property. This property is used with table tag.
 Syntex
 <table cellspacing="value in digit(1 or 2 etc.)">
 <tr>
    <th>id</th>
 </tr>
 <tr>
    <td>01</td>
 </tr>
 </table>
 
Example
idname
01anna
02fanna

Click to practice online example
Cellpadding property : this property define margin of text inside the cell. for this purpose we pass width of space inside this property. This property is used with table tag.
 Syntex
 <table cellpadding="value in digit(1 or 2 etc.)">
 <tr>
    <th>id</th>
 </tr>
 <tr>
    <td>01</td>
 </tr>
 </table>
 
Example
idname
01anna
02fanna

Click to practice online example
rowspan property : this property define height of data tag. for this purpose we pass numberic number inside this property that tell to webbrowser to reserve no of rows for table data tag. This property is used with table data tag.
 Syntex
 <table>
 <tr>
    <th>id</th>
 </tr>
 <tr>
    <td rowspan="numberic number">01</td>
 </tr>
 </table>
 
Example
idname
01anna
02fanna

Click to practice online example
colspan property : this property define width of data tag. for this purpose we pass numberic number inside this property that tell to webbrowser to reserve no of cols for table data tag. This property is used with table data tag.
 Syntex
 <table>
 <tr>
    <th>id</th>
 </tr>
 <tr>
    <td colspan="numeric number">01</td>
 </tr>
 </table>
 
Example
idname
01anna
02fanna
Click to practice online example

No comments:

Post a Comment