Live Preview
A simple page footer with copyright text:

By the end of this tutorial, you’ll build semantic page footers with copyright, navigation, and contact information.
In web development, the <footer> tag plays a crucial role in structuring the bottom section of a webpage. This guide explores syntax, attributes, accessibility, and best practices for beginners and web developers alike.
Wrap footer content in <footer> tags.
Display ownership and legal text at the page bottom.
Link to important pages with nav inside footer.
Pair footer with address for email and links.
Visually separate footer from main content.
Understand contentinfo for assistive tech.
<footer> Tag?The footer element (<footer>) is a semantic HTML5 tag that defines a footer for its nearest sectioning ancestor or the page. It typically contains metadata, copyright information, navigation links, contact details, or any content that belongs at the bottom of a section.
A footer at the page level wraps site-wide copyright and links. A footer inside article or section applies only to that block — such as author info or publication date.
When used as the page footer, browsers expose a contentinfo landmark for screen readers. Common child elements include <p>, <nav>, and <address>.
Enclose footer content between opening and closing <footer> tags, usually after <main>:
<footer>
<!-- Your footer content here -->
</footer>footer after <main> when possible.footer per document for clear landmarks.aria-label on nav (e.g. aria-label="Footer").<footer> with the site template file named footer — they are different concepts.| Pattern | Code Snippet | Notes |
|---|---|---|
| Copyright | <footer><p>© 2026...</p> | Most common page footer |
| Footer nav | <footer><nav><ul>...</ul> | Secondary site links |
| Contact block | <footer><address>...</address> | Email or physical contact |
| Article footer | <article><footer>...</footer> | Scoped to the article |
| Landmark role | contentinfo | Implicit for page footer |
| Tag-specific attrs | None | Global attributes only |
The <footer> tag has no tag-specific attributes. Use global attributes and semantic child elements inside the footer:
class / id GlobalCSS hooks for layout, background, and spacing of the footer block.
class="site-footer"aria-labelledby A11yLabels the footer landmark when multiple footers exist on one page.
aria-labelledby="footer-heading"lang GlobalLanguage of footer text when it differs from the document.
lang="en"Child elements ContentUse nav, p, address, and links inside footer.
<nav aria-label="Footer">Style and structure the footer with CSS and child elements — not with obsolete presentational tags like font.
Copyright notices, footer navigation, and complete site footers with copy-ready code and live previews.
A simple page footer with copyright text:
One common use of <footer> is to house copyright information for the webpage.
<footer>
<p>© 2026 Your Website Name. All rights reserved.</p>
</footer>Use <footer> for site-wide copyright lines, footer navigation menus, social media links, legal pages (Privacy, Terms), contact email via address, and article-level author or publication metadata at the bottom of blog posts.
Including navigation links in the footer gives users quick access to important sections of your website.
<footer>
<nav aria-label="Footer">
<ul>
<li><a href="#home">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</nav>
</footer>Combine footer navigation, copyright, and contact information in one semantic block.
<footer>
<nav aria-label="Footer">
<ul>
<li><a href="#home">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</nav>
<p>© 2026 Your Website Name. All rights reserved.</p>
<address>
Contact us at <a href="mailto:info@example.com">info@example.com</a>
</address>
</footer>Visually distinguish the footer from main content with spacing, borders, and background:
border-top Separate from mainpadding Comfortable spacingfooter nav Horizontal link rowbackground Dark footer bar/* Site footer styling */
footer.site-footer {
margin-top: 2rem;
padding: 1.25rem;
border-top: 1px solid #e2e8f0;
background: #f8fafc;
font-size: 0.875rem;
color: #64748b;
}
footer nav ul {
list-style: none;
display: flex;
gap: 1rem;
padding: 0;
margin: 0 0 0.75rem;
}
footer address {
font-style: normal;
margin-top: 0.5rem;
}Live styled footer
Semantic footers help all users find page metadata:
contentinfo landmark per page is clearest for screen readers.aria-label="Footer" when header and footer both contain nav.footer after main in the DOM for logical reading order.Wrap copyright, links, and contact info in footer.
Page-level footers map to the contentinfo landmark for assistive tech.
Borders, backgrounds, and flex layouts visually separate footer from main content.
Users and search engines understand where page metadata lives.
The <footer> element is fully supported in all modern browsers and Internet Explorer 9+.
From legacy Internet Explorer to the latest mobile browsers — footer is a safe HTML5 building block for page structure.
Bottom line: Ship semantic page footers with confidence. The <footer> element is safe to use in every production environment today.
Understanding the purpose and implementation of the <footer> tag is essential for creating well-structured and user-friendly webpages. Whether displaying copyright information or providing easy navigation links, footer contributes to a cohesive and organized website layout.
Use one clear page footer after main, label footer navigation for accessibility, and style the block with CSS so it is visually distinct from your primary content.
footer for copyright, footer nav, and contact infomain in the DOMaria-label on footer nav elementsfooterfooter with a plain div<footer>Bookmark these before you ship — they’ll keep your page structure semantic and accessible.
<footer> holds bottom-of-page metadata.
Common home for legal and ownership text.
Use CaseSecondary links with labeled nav.
Pair with address for email links.
Implicit landmark for page footers.
AccessibilityHTML5 semantic element with full browser support.
Compatibilityarticle or section applies to that block only — for author info, dates, or tags.footer is semantic with a contentinfo landmark. div is a generic container with no built-in meaning.class, id, and aria-labelledby.Add copyright, navigation, and contact info with footer in the interactive HTML editor.
6 people found this page helpful