The HTML <col> tag is a child tag of colgroup tag. The HTML <col> tag is used for specifying column properties for each column within a colgroup.
Example of Code
<table border = "1">
<colgroup span = "3">
<col width = "50"></col>
<col width = "100"></col>
<col width = "150"></col>
<col width = "50"></col>
</colgroup>
<tr>
<td>col 1</td>
<td>col 2</td>
<td>col 3</td>
<td>col 4</td>
</tr>
</table>
Output
col 1 col 2 col 3 col 4
