HTML <tr> charProperty
Example
Align the contents of the second and third rows with the "." character:
<table border="1">
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr align="char" char=".">
<td>January</td>
<td>$100.00</td>
</tr>
<tr align="char" char=".">
<td>February</td>
<td>$10.00</td>
</tr>
</table>
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr align="char" char=".">
<td>January</td>
<td>$100.00</td>
</tr>
<tr align="char" char=".">
<td>February</td>
<td>$10.00</td>
</tr>
</table>
Try it Yourself »
Browser Support
![]()
![]()
![]()
![]()
![]()
Almost all mainstream browsers do not support the char attribute.
Definition and Usage
HTML5 does not support the <tr> char attribute.
The char attribute specifies the alignment of the content in a table row 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
<tr char="character">
Property value
| Value | Description |
|---|---|
| character | Specify the character against which the content is aligned. |
HTML <tr> Tagother extensions