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

Руководство по HTML

Полный список HTML-тегов

HTML: атрибут charoff в <tfoot>

Атрибут charoff устанавливает, что содержимое элемента <tfoot> будет выравниваться с символа, указанного в атрибуте char, в количестве символов, указанных в атрибуте charoff. Атрибут charoff можно использовать только в том случае, если атрибут char был задан и атрибут align установлен в значение "char".

 HTML <tfoot> тег

Онлайн пример

Выравнивать содержимое элемента <tfoot> с символом "." вправо на два знака:

<table style="width:100%;" border="1">
    <tr>
      <th>Книги по языкам программирования</th>
      <th>Цена</th>
    </tr>
    <tr>
      <td align="right">PHP базовый курс</td>
      <td>$30</td>
    </tr>
    <tr>
      <td align="left">JAVA программирование</td>
      <td>$80</td>
    </tr>
   <tfoot align="char" char="." charoff="2">
      <tr>
        <td>Total</td>
        <td>$110.00</td>
      </tr>
  </tfoot> 
</table>
Test and see ‹/›

Browser compatibility

IEFirefoxOperaChromeSafari

Almost all mainstream browsers do not support the charoff attribute.

Definition and usage

HTML5 does not support the <tfoot> charoff attribute.

The charoff attribute sets the number of characters from the content inside the <tfoot> element to align starting from the character specified by the char attribute.
The charoff attribute can only be used if the char attribute is specified and the align attribute is set to “char”.

Grammar

<tfoot charoff="number">

Attribute value

ValueDescription
numberSpecify the alignment method.
Положительный номер specifies the alignment to the right of the character.
Минусовый номер specifies the alignment to the left of the character.
 HTML <tfoot> тег