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

Manual de Referência HTML

大全 de etiquetas HTML

HTML: Propriedade charoff do <thead>

A propriedade charoff do <thead> define a partir de qual caractere começar a alinhar o conteúdo do elemento <thead> dentro do caractere especificado pela propriedade char, e pode ser usada apenas quando a propriedade char está especificada e a propriedade align está configurada como "char".

 HTML <thead> tag

Exemplo Online

Alinhar o conteúdo de <thead> com os dois caracteres à direita do caractere "B":

<table style="width:100%;" border="1">
  <thead align="char" char="B" charoff="2">
  <tr>
    <th height="50">Babi Doll Manufacturer</th>
    <th height="50">Babi Doll Type</th>
  </tr>
  </thead>
  <tr>
    <td>Barbie Princess</td>
    <td>6Joint Barbie Doll</td>
  </tr>
  <tr>
    <td>Barbie Princess</td>
    <td>12Joint Barbie Doll</td>
  </tr>
</table>
Test and see ‹/›

Browser compatibility

IEFirefoxOperaChromeSafari

Almost all mainstream browsers do not support the charoff attribute.

Definition and usage

HTML5 The <thead> charoff attribute is not supported.

The charoff attribute sets the number of characters to start aligning the content within the <thead> element from the character specified by the char attribute.
The charoff attribute can only be used when the char attribute is specified and the align attribute is set to 'char'.

Syntax

<thead charoff="number">

Attribute value

ValueDescription
numberSpecify the alignment method.
Positive numbers specify right alignment for the character.
Negative numbers specify left alignment for the character.
 HTML <thead> tag