<footer>

Description

The <footer> element is the complement to header and represents the footer for a section. A footer usually contains summary information about a section.

The <footer> element cannot be a descendent of the address or header element and cannot be a descendant of another footer element.

Example


<!DOCTYPE HTML> 
<html> 
<body> 
    <header> 
        <hgroup> 
            <h1>H1</h1> 
            <h2>H2</h2> 
        </hgroup> 
    </header> 
    <section> 
        <header> 
            <h1>H1</h1> 
        </header> 
    </section> 
    <footer id="mainFooter"> 
        <p>This is a text.</p>
    </footer> 
</body> <!-- w w  w .  j a  v  a 2  s.  co m-->
</html>

Click to view the demo

The code above generates the following result.

footer




















Home »
  HTML CSS »
    HTML CSS Reference »




HTML Tag Reference
CSS Reference
CSS Selector Reference
Encoding Reference