HTML <td> charAttribute

HTML td 标签参考手册HTML <td> Tag

Examples

Align the content of the "Savings" data cell with the "." character:

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

Try it Yourself »

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Almost all mainstream browsers do not support the char attribute.


Definition and Usage

HTML5 does not support the <td> char attribute.

The char attribute specifies the alignment of the content in a cell relative to a certain character.

The char attribute can only be used when the align attribute is set to "char".

The default value of the char attribute is the decimal point character of the current page language.


Syntax

<td char="character">

Attribute Values

Value Description
character Specifies the character to align the content with.


HTML td 标签参考手册HTML <td> Tag Other Extensions