<tfoot>

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

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

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

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

Атрибуты

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

align Устарело

Этот атрибут определяет горизонтальное выравнивание содержимого каждой ячейки. Возможные значения: left, center, right, justify и char (выравнивание текстового содержимого по специальному символу с минимальным смещением, определённым атрибутами char и charoff).

bgcolor Не стандартно

Этот атрибут определяет цвет фона каждой ячейки столбца. Это один из 6-ти значного шестнадцатеричного кода определённого в sRGB, предваряется '#'. Может быть использован один из шестнадцати предопределённых строк.

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.

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.

valign Устарело

Этот атрибут задаёт вертикальное выравнивание текста в каждой строке ячеек заголовка таблицы. Возможные значения для этого атрибута: baseline, bottom, middle и top.

DOM интерфейс

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

Примеры

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

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

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
tfoot
align
Deprecated
bgcolor
Deprecated
char
Deprecated
charoff
Deprecated
valign
Deprecated

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support
Deprecated. Not for use in new websites.
See implementation notes.

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