Horje

How to create HTML <col> Tag

Set the background color of the three columns with the <colgroup> and <col> tags:
index.html
Example: HTML
 <table> <colgroup> <col span="2" style="background-color:red"> <col style="background-color:yellow"> </colgroup> <tr> <th>ISBN</th> <th>Title</th> <th>Price</th> </tr> <tr> <td>3476896</td> <td>My first HTML</td> <td>$53</td> </tr>
</table> 

Output should be:

How to create HTML <col> Tag




Type :
html
Category :
Web Tutorial
Sub Category :
HTML Tag
Uploaded by :
Admin