<tfoot>
Baseline
Widely available
*
This feature is well established and works across many devices and browser versions. It’s been available across browsers since июль 2015 г..
* Some parts of this feature may have varying levels of support.
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
alignis 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>.
Совместимость с браузерами
Loading…
Смотрите также
- Other table-related HTML Elements:
<caption>,<col>,<colgroup>,<table>,<tbody>,<td>,<th>,<thead>,<tr>; - CSS properties and pseudo-classes that may be specially useful to style the <tfoot> element:
- the
:nth-childpseudo-class to set the alignment on the cells of the column; - the
text-alignproperty to align all cells content on the same character, like '.'.
- the