<tfoot>

HTML элемент подвала таблицы (<tfoot>) определяющий набор строк суммирующих столбцы таблицы.

Используемый контекст

Content categories None.
Допустимое содержание Ноль или более <tr> (en-US) элементов.
Tag omission The start tag is mandatory. The end tag may be omitted if the <tbody> (en-US) element is immediately followed by an, eventually implicitly-defined, <tbody> (en-US), or if there is no more content in the parent <table> (en-US) element.
Разрешённые родительские элементы A <table> (en-US) element. The <tfoot> must appear after any <caption>, <colgroup> (en-US) or <thead> (en-US) element. It can be before or after all <tbody> (en-US) and <tr> (en-US) elements, but not intermixed with them. The <tfoot> element cannot be placed after any <tbody> (en-US) and <tr> (en-US) element. This restriction has been softened in HTML5.
Нормативные документы HTML5, section 4.9.7 (HTML4.01, section 11.2.3)

Атрибуты

Этот элемент включает в себя глобальные атрибуты (en-US).

  • align Устарело
    • : Этот атрибут определяет горизонтальное выравнивание содержимого каждой ячейки. Возможные значения:
      • left, выравнивание содержимого по левому краю ячейки
      • center, выравнивание содержимого по центру ячейки
      • right, выравнивание содержимого по правому краю ячейки
      • justify, выравнивание по ширине ячейки: добавление пробелов к тексту содержимого ячейки до тех пор, пока содержимое не выровняется от одного края ячейки до другого
      • char, выравнивание текстового содержимого по специальному символу с минимальным смещением, определённым char (en-US) и charoff (en-US) атрибутами Не реализовано (смотрите Firefox bug 2212).Если этот атрибут не задан, то значением по умолчанию является left.

        **Примечание:**Do not use this attribute as it is obsolete (not supported) in the latest standard.* To achieve the same effect as the left, center, right or justify values, use the CSS text-align property on it.

        • To achieve the same effect as the char value, in CSS3, you can use the value of the char as the value of the text-align property Не реализовано.
  • bgcolor Non-standard
    • : Этот атрибут определяет цвет фона каждой ячейки столбца. Это один из 6-ти значного шестнадцатеричного кода определённого в sRGB, предваряется '#'. Может быть использован один из шестнадцати предопределённых строк: black = "#000000" green = "#008000"
      silver = "#C0C0C0" lime = "#00FF00"
      gray = "#808080" olive = "#808000"
      white = "#FFFFFF" yellow = "#FFFF00"
      maroon = "#800000" navy = "#000080"
      red = "#FF0000" blue = "#0000FF"
      purple = "#800080" teal = "#008080"
      fuchsia = "#FF00FF" aqua = "#00FFFF" > Примечание: Do not use this attribute, as it is non-standard and only implemented some versions of Microsoft Internet Explorer: the <tfoot> element should be styled using CSS. To give a similar effect to the bgcolor attribute, use the CSS property background-color, on the relevant <td> or <th> (en-US) elements.
  • char Устарело
    • : This attribute is used to set the character to align the cells in a column on. Typical values for this include a period (.) when attempting to align numbers or monetary values. If align is not set to char, this attribute is ignored.

      **Примечание:**Do not use this attribute as it is obsolete (and not supported) in the latest standard. To achieve the same effect as the char, in CSS3, you can use the character set using the char attribute as the value of the text-align property Не реализовано.

  • charoff Устарело
    • : This attribute is used to indicate the number of characters to offset the column data from the alignment characters specified by the char attribute.

      **Примечание:**Do not use this attribute as it is obsolete (and not supported) in the latest standard.

  • valign Устарело
    • : Этот атрибут задаёт вертикальное выравнивание текста в каждой строке ячеек заголовка таблицы. Возможные значения для этого атрибута:
      • baseline, which will put the text as close to the bottom of the cell as it is possible, but align it on the baseline of the characters instead of the bottom of them. If characters are all of the size, this has the same effect as bottom.
      • bottom, which will put the text as close to the bottom of the cell as it is possible;
      • middle, which will center the text in the cell;
      • and top, which will put the text as close to the top of the cell as it is possible.

        Примечание: Do not use this attribute as it is obsolete (and not supported) in the latest standard: instead set the CSS vertical-align property on it.

DOM интерфейс

Этот элемент реализует интерфейс HTMLTableSectionElement.

Примеры

Пожалуйста обратитесь к странице <table> (en-US) для примера <tfoot>.

Совместимость браузеров

BCD tables only load in the browser

Смотрите также