English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
HTML5The <colgroup> char attribute is not supported, the char attribute specifies the alignment of the content in the column group with the character, and the char attribute can only be used when the align attribute is set to "char", and the default value of char is the decimal point character of the page language.
In the following example, the content of the second column in the table is aligned with the character ".":
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>HTML <colgroup> char Attribute Usage-Basic Tutorial(oldtoolbag.com)</title> <style>table, th, td { border: 1px solid black;</style> </head> <body> <table style="width:100%"> <colgroup align="left">/colgroup> <colgroup align="char" char=".">/colgroup> <tr> <th>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> </body> </html>Test See ‹/›
IEFirefoxOperaChromeSafari
Note:Almost all mainstream browsers do not support the char attribute.
In HTML5 In HTML, the <colgroup> char attribute is not supported.
The char attribute specifies the alignment of the content within 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 language.
<colgroup char="character">
Value | Description |
---|---|
character | Specifies the character to align the content with. |