title: HTML: IE9 standards mode print TFOOT on every page
body: <p>Tables in HTML can have "<em>footers</em>":</p>
  
  <pre><code>&lt;TABLE&gt;
     &lt;THEAD&gt;&lt;TR&gt;&lt;TD&gt;Your header goes here&lt;/TD&gt;&lt;/TR&gt;&lt;/THEAD&gt;
     &lt;TFOOT&gt;&lt;TR&gt;&lt;TD&gt;Your footer goes here&lt;/TD&gt;&lt;/TR&gt;&lt;/TFOOT&gt;
     &lt;TBODY&gt;
        &lt;TR&gt;&lt;TD&gt;
           Page body in here -- as long as it needs to be
       &lt;/TD&gt;&lt;/TR&gt;
     &lt;/TBODY&gt;
  &lt;/TABLE&gt;
  </code></pre>
  
  <p>Normally, legacy Internet Explorer would only display the <code>TFOOT</code> at the bottom of the entire table. But there was a style that can be applied to <code>TFOOT</code> (and <code>THEAD</code>) to make it <a href="http://msdn.microsoft.com/en-us/library/ms530751%28v=vs.85%29.aspx" rel="nofollow noreferrer">print at the bottom of each page spanned by the table. From MSDN</a>:</p>
  
  <blockquote>
    <p><code>table-footer-group</code><br>
    Object is rendered as <a href="http://msdn.microsoft.com/en-us/library/ms535907%28v=vs.85%29.aspx" rel="nofollow noreferrer">tFoot</a>. Table footer is always displayed<br>
    after all other rows and row groups, and before any bottom captions.<br>
    The footer is displayed on each page spanned by a table. </p>
  </blockquote>
  
  <p>Adding <code>table-footer-group</code> as a style to <code>TFOOT</code> causes it (in Internet Explorer) to print at the bottom of each page spanned by the table:</p>
  
  <pre><code>&lt;STYLE type="text/css"&gt;
     tfoot { display: table-footer-group; }
  &lt;/STYLE&gt;
  </code></pre>
  
  <p>But if IE9 (<em>release candidate</em>) is placed into standards mode:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  </code></pre>
  
  <p>then the <code>TFOOT</code> is no longer rendered at the bottom of every page spanning the table, but only at the end of the entire table.</p>
  
  <p>i checked <a href="http://www.w3.org/TR/CSS2/tables.html" rel="nofollow noreferrer">the HTML spec</a> to see what the proper behavior is, and it's undefined!:</p>
  
  <blockquote>
    <p><strong>table-footer-group (In HTML: TFOOT)</strong><br>
    Like 'table-row-group', but for visual
    formatting, the row group is always
    displayed after all other rows and row
    groups and before any bottom captions.
    Print user agents <strong>may</strong> repeat footer
    rows on each page spanned by a table.
    If a table contains multiple elements
    with 'display: table-footer-group',
    only the first is rendered as a
    footer; the others are treated as if
    they had 'display: table-row-group'.</p>
  </blockquote>
  
  <p><strong>Note:</strong> Emphasis added for effect.</p>
  
  <p>Is there a way in IE9 <em>standards mode</em> for me to choose to print a <code>TFOOT</code> at the bottom of each page spanned by a table?</p>
  
  <h2>Update One</h2>
  
  <p>It is interesting to note that <code>table-footer-group</code> is a typical default value for <code>TFOOT</code> elements, but in previous versions of IE you could choose which behavior you wanted:</p>
  
  <ul>
  <li>bottom of entire table</li>
  <li>bottom of entire table and every intermediate page</li>
  </ul>
  
  <p>by choosing to include the style.</p>
  
  <h2>Update Two</h2>
  
  <p>As it is now i am forcing Internet Explorer to remain in IE8 standards mode with:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;HTML&gt;
  &lt;HEAD&gt;
     &lt;META http-equiv="X-UA-Compatible" content="IE=8" /&gt;
     &lt;!--IE8 Standards mode, so that we get the THEAD at the top, and the TFOOT at the bottom, of every page--&gt;
  </code></pre>
  
  <h2>See also</h2>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/1722437/is-there-a-way-to-get-a-web-page-header-footer-printed-on-every-page">Is there a way to get a web page header/footer printed on every page?</a></li>
  <li><a href="http://msdn.microsoft.com/en-us/library/ms530751(v=vs.85).aspx" rel="nofollow noreferrer">MSDN: display Attribute</a></li>
  <li><a href="http://www.w3.org/TR/CSS2/tables.html#table-display" rel="nofollow noreferrer">W3C CSS2.1: 17.2 The CSS table model</a></li>
  <li><a href="https://stackoverflow.com/questions/518163/printer-friendly-pages-with-a-header-on-every-page">Printer Friendly Pages With a Header on Every Page?</a></li>
  <li><a href="https://stackoverflow.com/questions/2048994/table-header-group-and-table-footer-group-in-a-div">table-header-group and table-footer-group in a Div</a></li>
  </ul>