Latest web development tutorials

HTML col char attribute

HTML col tag Reference Manual HTML <col> tag

Examples

. "" In the following HTML table, the second column of the content and character alignment:

<table width="100%" border="1">
<col align="left">
<col align="char" char=".">
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100.00</td>
</tr>
<tr>
<td>February</td>
<td>$10.00</td>
</tr>
</table>

try it"

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Note: All major browsers do not support char attributes.


Definition and Usage

HTML5 is no longer supported <col> char attributes.

char attribute specifies the col element content related to the relative alignment of a character.

Only if the align attribute set to "char" when to use char property.

Default char attribute is the decimal point character page language.


grammar

<col char="character">

Property Value

描述
character 规定将内容与之对齐的字符。


HTML col tag Reference Manual HTML <col> tag