HTML <col> alignAttributes
Example
<table width="100%" border="1">
<col align="left">
<col align="left">
<col align="right">
<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>
<col align="left">
<col align="left">
<col align="right">
<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>
Try it »
Browser Support
![]()
![]()
![]()
![]()
![]()
Only Opera and Internet Explorer 8 and earlier IE versions support the align attribute (IE9 does not support this attribute).
Definition and Usage
HTML5 does not support the <col> align attribute.
The align attribute specifies the horizontal alignment of content related to the col element.
Syntax
<col align="left|right|center|justify|char">
Attribute Values
| Value | Description |
|---|---|
| left | Left-align content (default value). |
| right | Right-align content. |
| center | Center-align content (default value for th elements). |
| justify | Stretch the lines so that each line has equal length (like in newspapers and magazines). |
| char | Align content to a specified character. |
HTML <col> tag Other extensions