HTML <th> charProperty
Example
Align the content of the first header cell with the "M" character:
<table border="1">
<tr>
<th align="char" char="M">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>
<tr>
<th align="char" char="M">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 Yourself »
Browser Support
![]()
![]()
![]()
![]()
![]()
Almost all mainstream browsers do not support the char attribute.
Definition and Usage
HTML5 does not support the <th> char attribute.
The char attribute specifies the alignment of the content in a header 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
<th char="character">
Property value
| Value | Description |
|---|---|
| character | Specifies the characters that the content is aligned with. |
HTML <th> Tagother extensions