The best HTML <tfoot> tag Tutorial In 2024, In this tutorial you can learn Examples,Browser Support,Tag definitions and instructions,Tips and Notes,Differences between HTML 4.01 and HTML5,Attributes,Global Properties,Event Properties,
HTML form with <thead>, <tfoot> and <tbody> element:
All major browsers support <tfoot> tag.
<Tfoot> tag for combining HTML table footer content.
<tfoot> element should be <thead> and <tbody> each part (footer, header, body) elements in combination, used to define the table.
By using these elements, so that the browser has the ability to support independent of the table header and the table footer table body roll. When included several pages long tables are printed, the table headers and footers can be printed on each page that contains table data.
<Tfoot> tag must be used in the following situations: a <table> child elements, appears after the <caption>, <colgroup> and <thead> element, before <tbody> and <tr> element.
NOTE: <tfoot> internal element must contain one or more <tr> tag.
Tip: <thead>, <tbody> and <tfoot> element does not affect the default table layout.However, you can use CSS to define styles for these elements, so as to change the appearance of tables.
In HTML 5, any attribute in HTML 4.01 <tfoot> tag is no longer supported.
属性 | 值 | 描述 |
---|---|---|
align | right left center justify char |
HTML5 不支持。定义 <tfoot> 元素中内容的对齐方式。 |
char | character | HTML5 不支持。规定 <tfoot> 元素中内容根据哪个字符来对进行文本对齐。 |
charoff | number | HTML5 不支持。规定 <tfoot> 元素中内容的第一个对齐字符的偏移量。 |
valign | top middle bottom baseline |
HTML5 不支持。规定 <tfoot> 元素中内容的垂直对齐方式。 |
<tfoot> tag supports HTML global properties .
<tfoot> tag supports HTML event properties .