mozilla

Revision 332795 of <footer>

  • Revision slug: HTML/Element/footer
  • Revision title: <footer>
  • Revision id: 332795
  • Created:
  • Creator: ethertank
  • Is current revision? No
  • Comment

Revision Content

{{HTMLVersionHeader(5)}}

Summary

The HTML Footer Element (<footer>) represents a footer for its nearest sectioning content or sectioning root element (i.e, its nearest parent {{HTMLElement("article")}}, {{HTMLElement("aside")}}, {{HTMLElement("nav")}}, {{HTMLElement("section")}}, {{HTMLElement("blockquote")}}, {{HTMLElement("body")}}, {{HTMLElement("details")}}, {{HTMLElement("fieldset")}}, {{HTMLElement("figure")}}, {{HTMLElement("td")}}). A footer typically contains information about the author of the section, copyright data or links to related documents.

Usage notes:

  • Enclose information about the author in an {{HTMLElement("address")}} element that can be included into the <footer> element.
  • The <footer> element is not sectioning content and therefore doesn't introduce a new section in the outline.

Usage context

Permitted content Flow content, but with no <footer> or {{HTMLElement("header")}} descendants.
Tag omission None, both the start tag and the end tag are mandatory.
Permitted parent elements

Any element that accepts flow content. Note that a <footer> element must not be a descendant of an {{HTMLElement("address")}}, {{HTMLElement("header")}} or another <footer> element.

Normative document HTML5, section 4.4.9

Attributes

This element has no other attributes than the global attributes, common to all elements.

DOM Interface

This element implements the HTMLElement interface.

Examples

<footer>
  Some copyright info or perhaps some author info for a <article>?
</footer> 

Browser compatibility

{{CompatibilityTable}}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support 5 {{CompatGeckoDesktop("2.0")}} 9.0 11.10 4.1
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support 2.2 {{CompatGeckoMobile("2.0")}} 9.0 11.0 5.0 (iOS 4.2)

See also

  • Other section-related elements: {{HTMLElement("body")}}, {{HTMLElement("nav")}}, {{HTMLElement("article")}}, {{HTMLElement("aside")}}, {{HTMLElement("h1")}}, {{HTMLElement("h2")}}, {{HTMLElement("h3")}}, {{HTMLElement("h4")}}, {{HTMLElement("h5")}}, {{HTMLElement("h6")}}, {{HTMLElement("hgroup")}}, {{HTMLElement("header")}}, {{HTMLElement("section")}}, {{HTMLElement("address")}};
  • Sections and outlines of an HTML5 document.
{{HTML:Element_Navigation}}

Revision Source

<div>
  {{HTMLVersionHeader(5)}}</div>
<h2 id="Summary">Summary</h2>
<p>The <em>HTML Footer Element</em> (<code>&lt;footer&gt;</code>) represents a footer for its nearest sectioning content or <a href="/en-US/docs/Sections_and_Outlines_of_an_HTML5_document#sectioning_root" title="Sections and Outlines of an HTML5 document#sectioning root">sectioning root</a> element (i.e, its nearest parent {{HTMLElement("article")}}, {{HTMLElement("aside")}}, {{HTMLElement("nav")}}, {{HTMLElement("section")}}, {{HTMLElement("blockquote")}}, {{HTMLElement("body")}}, {{HTMLElement("details")}}, {{HTMLElement("fieldset")}}, {{HTMLElement("figure")}}, {{HTMLElement("td")}}). A footer typically contains information about the author of the section, copyright data or links to related documents.</p>
<div class="note">
  <p><strong>Usage notes:</strong></p>
  <ul>
    <li>Enclose information about the author in an {{HTMLElement("address")}} element that can be included into the <code>&lt;footer&gt;</code> element.</li>
    <li>The <code>&lt;footer&gt;</code> element is not sectioning content and therefore doesn't introduce a new section in the <a href="/en-US/docs/Sections_and_Outlines_of_an_HTML5_document" title="Sections and Outlines of an HTML5 document">outline</a>.</li>
  </ul>
</div>
<h2 id="Usage_context">Usage context</h2>
<table class="standard-table">
  <tbody>
    <tr>
      <td>Permitted content</td>
      <td><a href="/en-US/docs/HTML/Content_categories#flow_content" title="HTML/Content categories#flow content">Flow content</a>, but with no <code>&lt;footer&gt;</code> or {{HTMLElement("header")}} descendants.</td>
    </tr>
    <tr>
      <td>Tag omission</td>
      <td>None, both the <span title="syntax-start-tag">start tag</span> and the <span title="syntax-end-tag">end tag</span> are mandatory.</td>
    </tr>
    <tr>
      <td>Permitted parent elements</td>
      <td>
        <p>Any element that accepts <a href="/en-US/docs/HTML/Content_categories#flow_content" title="HTML/Content categories#flow content">flow content</a>. Note that a <code>&lt;footer&gt;</code> element must not be a descendant of an {{HTMLElement("address")}}, {{HTMLElement("header")}} or another <code>&lt;footer&gt;</code> element.</p>
      </td>
    </tr>
    <tr>
      <td>Normative document</td>
      <td><a class="external" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/sections.html#the-footer-element" rel="external nofollow" target="_blank" title="http://www.whatwg.org/specs/web-apps/current-work/multipage/sections.html#the-footer-element">HTML5, section 4.4.9</a></td>
    </tr>
  </tbody>
</table>
<h2 id="Attributes">Attributes</h2>
<p>This element has no other attributes than the <a href="/en-US/docs/HTML/Global_attributes" rel="internal">global attributes</a>, common to all elements.</p>
<h2 class="editable" id="DOM_Interface">DOM Interface</h2>
<p>This element implements the <code><a href="/en-US/docs/DOM/element" title="DOM/element">HTMLElement</a></code> interface.</p>
<h2 id="Examples">Examples</h2>
<pre class="brush: html">
&lt;footer&gt;
  Some copyright info or perhaps some author info for a &lt;article&gt;?
&lt;/footer&gt; 
</pre>
<h2 id="Browser_compatibility">Browser compatibility</h2>
<p>{{CompatibilityTable}}</p>
<div id="compat-desktop">
  <table class="compat-table">
    <tbody>
      <tr>
        <th>Feature</th>
        <th>Chrome</th>
        <th>Firefox (Gecko)</th>
        <th>Internet Explorer</th>
        <th>Opera</th>
        <th>Safari</th>
      </tr>
      <tr>
        <td>Basic support</td>
        <td>5</td>
        <td>{{CompatGeckoDesktop("2.0")}}</td>
        <td>9.0</td>
        <td>11.10</td>
        <td>4.1</td>
      </tr>
    </tbody>
  </table>
</div>
<div id="compat-mobile">
  <table class="compat-table">
    <tbody>
      <tr>
        <th>Feature</th>
        <th>Android</th>
        <th>Firefox Mobile (Gecko)</th>
        <th>IE Mobile</th>
        <th>Opera Mobile</th>
        <th>Safari Mobile</th>
      </tr>
      <tr>
        <td>Basic support</td>
        <td>2.2</td>
        <td>{{CompatGeckoMobile("2.0")}}</td>
        <td>9.0</td>
        <td>11.0</td>
        <td>5.0 (iOS 4.2)</td>
      </tr>
    </tbody>
  </table>
</div>
<h2 id="See_also">See also</h2>
<ul>
  <li>Other section-related elements: {{HTMLElement("body")}}, {{HTMLElement("nav")}}, {{HTMLElement("article")}}, {{HTMLElement("aside")}}, {{HTMLElement("h1")}}, {{HTMLElement("h2")}}, {{HTMLElement("h3")}}, {{HTMLElement("h4")}}, {{HTMLElement("h5")}}, {{HTMLElement("h6")}}, {{HTMLElement("hgroup")}}, {{HTMLElement("header")}}, {{HTMLElement("section")}}, {{HTMLElement("address")}};</li>
  <li class="last"><a href="/en-US/docs/Sections_and_Outlines_of_an_HTML5_document" title="Sections and Outlines of an HTML5 document">Sections and outlines of an HTML5 document</a>.</li>
</ul>
<div>
  {{HTML:Element_Navigation}}</div>
Revert to this revision