HTML col char attribute
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>
<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
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