HTML Tutorial
<col>
:<table>
element.<col>
:Attribute | Description |
---|---|
span |
Specifies how many columns this element should span. |
width |
Defines the width of the column in pixels, percentage, or relative units. |
align |
Aligns the content of the column (left, center, right). |
valign |
Aligns the content of the column vertically (top, middle, bottom). |
char |
Character used as a placeholder for text or images. |
charoff |
Offset of the cell's content from the leading edge of the column. |
<col>
:<col width="200">
<col align="right">
<col char="*">
Exploring the <col>
tag:
<table>
<col width="200">
<col>
<col align="right">
<tr>
<td>Column 1</td>
<td>Column 2</td>
<td align="right">Column 3</td>
</tr>
</table>
In this example: