HTML char attribute


In the example below, the content of the second and the third row should align to the "." character:
<table border="1">
  <tr align="char" char=".">
  <tr align="char" char=".">

Definition and Usage

The char attribute specifies the alignment of the content in a table row 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.


<tr char="value">

Attribute Values

Value Description
character Specifies the character to align the content to
HTML char attribute Reviewed by 1000sourcecodes on 20:44 Rating: 5
Powered by Blogger.