HTML col align property
Examples
<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 versions of IE support align attribute (which IE9 is not supported).
Definition and Usage
HTML5 does not support the <col> align attribute.
Align attribute specifies the horizontal alignment of the col element related content.
grammar
<col align="left|right|center|justify|char">
Property Value
value | description |
---|---|
left | Left align content (default). |
right | Right-aligned content. |
center | Centered content (default value th element). |
justify | Extending rows so that each row can have equal length (as in newspapers and magazines). |
char | The contents of the alignment specified character. |
HTML <col> tag