Difference between revisions of "Tfoot (HTML element)"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
(External links)
 
Line 1: Line 1:
In [[HTML element|HTML]], the '''tfoot''' element represents the block of rows that consist of the column summaries (footers) for the parent [[Table (HTML)|table element]], if the tfoot element has a parent and it is a table.
+
In [[HTML element|HTML]], the '''tfoot''' element represents the block of rows that consist of the column summaries (footers) for the parent [[Table (HTML element)|table element]], if the tfoot element has a parent and it is a table.
  
 
== Description ==
 
== Description ==
  
As a child of a [[Table (HTML)|table element]], after any [[Caption (HTML element)|caption]], [[Colgroup (HTML element)|colgroup]], and [[Thead (HTML element)|thead]] elements and before any [[Tbody (HTML element)|tbody]] and [[Tr (HTML element)|tr]] elements, but only if there are no other tfoot elements that are children of the [[Table (HTML element)|table element]].
+
As a child of a [[Table (HTML element)|table element]], after any [[Caption (HTML element)|caption]], [[Colgroup (HTML element)|colgroup]], and [[Thead (HTML element)|thead]] elements and before any [[Tbody (HTML element)|tbody]] and [[Tr (HTML element)|tr]] elements, but only if there are no other tfoot elements that are children of the [[Table (HTML element)|table element]].
  
 
Or, as a child of a table element, after any caption, colgroup, thead, tbody, and tr elements, but only if there are no other tfoot elements that are children of the table element.
 
Or, as a child of a table element, after any caption, colgroup, thead, tbody, and tr elements, but only if there are no other tfoot elements that are children of the table element.

Latest revision as of 06:00, 2 May 2016

In HTML, the tfoot element represents the block of rows that consist of the column summaries (footers) for the parent table element, if the tfoot element has a parent and it is a table.

Description

As a child of a table element, after any caption, colgroup, and thead elements and before any tbody and tr elements, but only if there are no other tfoot elements that are children of the table element.

Or, as a child of a table element, after any caption, colgroup, thead, tbody, and tr elements, but only if there are no other tfoot elements that are children of the table element.

Examples

<table>
  <caption>
    <p>table 1. List of HTML elements</p>
  </caption>
  <thead>
    <tr>
      <th>Number</th>
      <th>element</th>
    </tr>
  </thead>
  <tfoot>
    <tr>
      <td colspan="2">copyright ...</td>
    </tr>
  </tfoot>
  <tbody>
    <tr>
      <td>4.1.1</td>
      <td>html</td>
    </tr>
    <tr>
      <td>4.2.1</td>
      <td>head</td>
    </tr>
  </tbody>
</table>

See also

External links