HTML <thead> charoffProperty

HTML <thead> Tag

Example

Align the content in the <thead> element to the position two characters to the right of the character "M":

<table border="1" width="100%">
  <thead align="char" char="M" charoff="2">
    <tr>
      <th>Month</th>
      <th>Savings</th>
    </tr>
  </thead>
    <tr>
      <td>January</td>
      <td>$100</td>
    </tr>
    <tr>
      <td>February</td>
      <td>$80</td>
    </tr>
</table>

Try it Yourself »

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Almost all mainstream browsers do not support the charoff attribute.


Definition and Usage

HTML5 does not support the <thead> charoff attribute.

The charoff attribute specifies the alignment offset of the content in the <thead> element 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

<thead charoff="number">

Property value

Value Description
number Specify the alignment method.
A positive number specifies right alignment of the character.
A negative number specifies left alignment of the character.


HTML <thead> Tagother extensions