Latest web development tutorials

HTML thead charoff property

HTML thead tag Reference Manual HTML <thead> tag

Examples

The <thead> element in the content and character "M" to the right-aligned position of two characters:

<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"

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Almost all of the major browsers do not support charoff property.


Definition and Usage

HTML5 does not support the <thead> charoff property.

Attribute specifies charoff <thead> element is aligned with respect to the contents of the offset specified by the char attribute characters.

Only when the align attribute set to "char" char property and set to use charoff property.


grammar

<thead charoff="number">

Property Value

描述
number 规定对齐方式。
正数规定向字符的右边对齐。
负数规定向字符的左边对齐。


HTML thead tag Reference Manual HTML <thead> tag