THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML <th> char Attribute

HTML th Reference HTML <th> tag

Example

Align the content of the first header cell to the "M" character:

<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 »

Definition and Usage

The <th> char attribute is not supported in HTML5.

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

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

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


Browser Support

Attribute
char Not supported Not supported Not supported Not supported Not supported

Syntax

<th char="character">

Attribute Values

Value Description
character Specifies the character to align the content to

HTML th Reference HTML <th> tag