HTML th char attribute


In the example below, the content of the first header cell should align to the "M" character:
<table border="1">
    <th align="char" char="M">Month</th>

Definition and Usage

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

Note: The char attribute is not supported by any of the major browsers.


<th char="value">

Attribute Values

Value Description
character Specifies the character to align the content to
Share this article :
Copyright © 2012. Best Online Tutorials | Source codes | Programming Languages - All Rights Reserved