Represents introductory content for its section. Learn more →
<footer> ElementThe <footer> element represents footer content for its nearest sectioning element or the document as a whole. It typically contains information about the author, copyright, links to related documents, or contact information. Like headers, you can have multiple footer elements in a document.
<footer> <!-- Footer content: copyright, links, contact info, etc. --></footer>The <footer> element has no element-specific attributes.
This element supports all global attributes.
The most common use is a page footer with copyright and links:
Footers can contain article metadata, author bio, or related links:
Footers for sections containing navigation or summary links:
A footer containing social media links and newsletter signup:
Footer with tags, categories, and sharing options:
The footer should contain closing or supplementary information:
<!-- Good: Footer with supplementary info --><article> <h2>Article Title</h2> <p>Main content...</p> <footer> <p>Author: Jane Doe</p> <p>Published: 2025-03-15</p> </footer></article>
<!-- Avoid: Primary content in footer --><footer> <h1>Main Article Content</h1> <p>The entire article should not be in the footer...</p></footer>You can have multiple footers in a document:
<body> <main> <!-- Article footer (not a landmark) --> <article> <h2>Article Title</h2> <p>Content...</p> <footer> <p>Author: Jane Doe</p> </footer> </article>
<!-- Section footer (not a landmark) --> <section> <h2>Section Title</h2> <p>Content...</p> <footer> <p>Section metadata</p> </footer> </section> </main>
<!-- Page footer (contentinfo landmark) --> <footer> <p>© 2025 Company Name</p> </footer></body>Avoid nesting <footer> elements:
<!-- Wrong: Nested footers --><footer> <footer> <p>Copyright info</p> </footer></footer>
<!-- Correct: No nesting --><footer> <div class="copyright"> <p>© 2025 Company</p> </div> <div class="links"> <a href="/privacy">Privacy</a> </div></footer>Footers can’t be descendants of <header> or <address> elements:
<!-- Wrong: Footer inside header --><header> <h1>Site Name</h1> <footer>Copyright info</footer></header>
<!-- Correct: Separate elements --><header> <h1>Site Name</h1></header><footer> <p>Copyright info</p></footer>A <footer> element at the page level (direct child of <body>) becomes a contentinfo landmark:
<!-- This is a contentinfo landmark --><body> <main>Content</main> <footer> <p>© 2025 Company</p> </footer></body>Footers inside sectioning elements (<article>, <aside>, <main>, <nav>, <section>) are NOT landmarks:
<main> <!-- This footer is NOT a landmark --> <article> <h2>Article Title</h2> <p>Content...</p> <footer> <p>Author info</p> </footer> </article></main>Use <address> for contact information within footers:
<footer> <address> <p>Contact us at:</p> <p>Phone: <a href="tel:+11234567890">(123) 456-7890</a></p> </address> <p>© 2025 Company Name</p></footer>Footer navigation should be properly labeled:
<footer> <nav aria-label="Footer navigation"> <a href="/privacy">Privacy Policy</a> <a href="/terms">Terms of Service</a> <a href="/sitemap">Sitemap</a> </nav> <p>© 2025 Company</p></footer>| Browser | Version |
|---|---|
| Chrome | 5+ |
| Firefox | 4+ |
| Safari | 5+ |
| Edge | All versions |
| IE | 9+ |
Represents introductory content for its section. Learn more →
Contact information, often used in footers. Learn more →
Navigation links, often placed in footers. Learn more →
Self-contained content that can have footers. Learn more →
<!-- Limited: Only copyright --><footer> <p>© 2025 Company</p></footer>
<!-- Better: More useful footer content --><footer> <nav aria-label="Footer"> <a href="/about">About</a> <a href="/contact">Contact</a> <a href="/privacy">Privacy</a> </nav> <address> </address> <p>© 2025 Company. All rights reserved.</p></footer><!-- Wrong: Unrelated end content in footer --><main> <h1>Article</h1> <p>Content...</p></main><footer> <section> <h2>Related Articles</h2> <!-- This should be in main, not footer --> </section> <p>© 2025</p></footer>
<!-- Correct: Only footer-appropriate content --><main> <article> <h1>Article</h1> <p>Content...</p> </article>
<section> <h2>Related Articles</h2> <!-- Related content in main --> </section></main><footer> <p>© 2025</p></footer><!-- Wrong: Multiple page-level footers --><body> <main>Content</main> <footer>Footer 1</footer> <footer>Footer 2</footer></body>
<!-- Correct: One page footer --><body> <main>Content</main> <footer> <div>Section 1</div> <div>Section 2</div> </footer></body>