tag < Colgroup > , < Col > :
Definition and Usage
The <col> tag specifies column properties for each column within a <colgroup> element.
The <col> tag is useful for applying styles to entire columns, instead of repeating the styles for each cell, for each row.
| Example | ||||
|
< table border="1" width = "300px" > < colgroup span="3" > < col width="50px" > < /col > < col width="100px" > < /col > < col width="150px" > < /col > < /colgroup > < tr > < td > home 1 < /td > < td > home 2 < /td > < td > home 3 < /td > < /tr > < /table > |
code | |||
|
output | |||