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

HTML Reference Manual

Complete list of HTML tags

HTML: <tr> charoff attribute

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

 HTML <tr> tag

Online example

Place the first1Row and the2The content of the row is aligned two characters to the right of the "." character:

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

Browser Compatibility

IEFirefoxOperaChromeSafari

Almost all mainstream browsers do not support the charoff attribute.

Definition and Usage

HTML5 The charoff attribute is not supported for <tr>.

The charoff attribute specifies the alignment offset of the content relative to the character specified by the char attribute.

The charoff attribute can only be used when the align attribute is set to "char" and the char attribute has been set.

Syntax

<tr charoff="number">

Attribute value

ValueDescription
numberSpecify the alignment method.
Positive numbers align the character to the right.
Negative numbers align the character to the left.
 HTML <tr> tag