Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML colgroup char attribute

HTML char attribute

HTML colgroup Tag Reference HTML Tag

Example

In the example below, the content of the second column in the table is aligned to the character ".":

 

 

 

   

   

 

 

   

   

 

 

   

   

 

Month Savings
January $100.00
February $10.00

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

**Note:** Almost all major browsers do not support the char attribute.


Definition and Usage

In HTML5, the char attribute is not supported.

The char attribute specifies the alignment of the content in the column group relative to a 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 page's language.


Syntax

HTML tag