HTML col char Attribute
HTML <col> tag
Definition and Usage
The char attribute specifies alignment of the
content in the table cell around a single character.
The default value of this attribute is the decimal point character of the
current language (set by the lang attribute).
Use this attribute together with the align attribute set to "char".
This attribute is not well supported, and should be avoided.
Syntax
Syntax Example
Attribute Values
Value |
Description |
character |
Specifies the character to align the text around. |
Browser Support

The attribute is not supported by major browsers.
Note: Because of the poor support for this attribute, you should avoid
using it.
Example
Source |
Output |
<table border="1">
<col align="char" char="." />
<col align="char" char="," />
<col align="char" char=":" />
<tr>
<th colspan="3">This table contains
three table data cells</th>
</tr>
<tr>
<td>10.58</td>
<td>211,11</td>
<td>15:32</td>
</tr>
</table>
|
This table contains
three table data cells |
10.58 |
211,11 |
15:32 |
|
Try-It-Yourself Demos
col char
attribute example
Set the column around a single character.
HTML <col> tag
 |

|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|