<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
иcharoff
). bgcolor
Non-standard-
Этот атрибут определяет цвет фона каждой ячейки столбца. Это один из 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
(en-US).
Примеры
Пожалуйста обратитесь к странице <table>
(en-US) для примера <tfoot>
.
Совместимость с браузерами
BCD tables only load in the browser
Смотрите также
- Other table-related HTML Elements:
<caption>
,<col>
,<colgroup>
(en-US),<table>
(en-US),<tbody>
(en-US),<td>
,<th>
(en-US),<thead>
(en-US),<tr>
(en-US); - CSS properties and pseudo-classes that may be specially useful to style the <tfoot> element:
- the
:nth-child
pseudo-class to set the alignment on the cells of the column; - the
text-align
property to align all cells content on the same character, like '.'.
- the