English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Reference Manual

HTML Tag大全

HTML: <tr> char attribute

The usage method of the <tr> char attribute, online instance demonstration of how to use the <tr> char attribute, browser compatibility, syntax definition, and detailed information about its attribute values.

 HTML <tr> tag

Online Example

Align the content of the first and second rows with the "." character:

<table style="width:100%" border="1">
  <tr align="char" char=".">
    <td>2018</td>
    <td>$15320.00</td>
  </tr>
   <tr align="char" char=".">
    <td>2019</td>
    <td>$18320.00</td>
  </tr>
</table>
Test and see ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

Almost all mainstream browsers do not support the char attribute.

Definition and Usage

HTML5 The <tr> char attribute is not supported.

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

Syntax

<tr char="character">

Attribute Value

ValueDescription
characterSpecifies the character to align the content with.
 HTML <tr> tag