<footer> Tag in HTML

Quick facts

CategoryFlow content, palpable content
Content modelFlow content, but no nested <header> or <footer> elements
Tag omissionNeither the start nor end tag can be omitted
Permitted parentsAny element that accepts flow content, but not a descendant of <address>, <header>, or <footer>
DOM interfaceHTMLElement

Syntax

<footer> ... </footer>

Live example

Edit the code below and watch the preview update instantly.

index.html
Preview

Attributes

AttributeDescription
—<footer> has no attributes of its own — only the global attributes shared by every HTML element.

Common examples

A site footer

Copyright, contact details and a few useful links: the standard bottom-of-page footer.

<footer class="site-footer"> <nav aria-label="Footer"> <a href="/about/">About</a> · <a href="/privacy-policy/">Privacy</a> · <a href="/contact/">Contact</a> </nav> <p>&copy; 2026 Example Inc.</p> </footer>

An article footer

Articles can end with their own footer for the author, tags or related links.

<article> <h2>Post title</h2> <p>Article text…</p> <footer> <p>Written by Jane Doe · Tags: <a href="/tags/html/">HTML</a></p> </footer> </article>

Keep the footer at the bottom of short pages

Make the page a flex column and let the main content grow, so the footer stays at the bottom even when there’s little content.

<body class="page"> <main>…</main> <footer>…</footer> </body> <style> .page { min-height: 100vh; display: flex; flex-direction: column; margin: 0; } .page main { flex: 1; } </style>

Contact details in the footer

Wrap the site owner’s contact details in an <address> element inside the footer.

<footer> <address> Questions? Email <a href="mailto:info@example.com">info@example.com</a> </address> <p>&copy; 2026 Example Inc.</p> </footer>

<footer> vs <aside>

Both hold “extra” content, but in different places and for different reasons. A <footer> closes its page or section: who wrote it, copyright, related links, contact details. An <aside> holds content that is related but separate from the main flow — a sidebar, a pull quote or a “did you know?” box — and can appear anywhere.

A quick test: if the content sums up or closes something, it’s a footer. If you could remove it and the main text would still make complete sense, it’s probably an aside.

<footer><aside>
RoleClosing informationRelated side content
PositionEnd of page or sectionAnywhere
ExamplesCopyright, author, contactSidebar, pull quote, tips

Common mistakes to avoid

  • Putting main content in the footer. Important text belongs in <main>; footers are for supporting information.
  • Nesting a <header> or another footer inside a footer. That isn’t allowed.
  • Stuffing the footer with dozens of keyword links. Huge “link farms” look spammy to visitors and to Google; keep footer links genuinely useful.
  • A copyright year that’s out of date. “© 2019” on a live site looks abandoned; update it each year or set it with JavaScript.

Accessibility & SEO tips

  • The page-level footer becomes the “contentinfo” landmark, so screen reader users can jump straight to contact and legal links.
  • Wrap contact details in an <address> element so their purpose is clear.
  • A small set of useful footer links (About, Contact, Privacy) helps visitors and search engines find your key pages from anywhere on the site.

Browser support

Supported in all modern browsers, including Chrome, Edge, Firefox, Safari and their mobile versions. It was introduced with HTML5, and only very old browsers such as Internet Explorer 8 needed workarounds.

Related tags

Frequently asked questions

What usually goes inside a <footer>?
Copyright notices, links to legal pages, social links, or contact information — content that closes out the section it belongs to.
Can I nest a <footer> inside an <article>?
Yes — it's a common pattern for showing the author, publish date, or tags at the end of a blog post.
How do I keep the footer at the bottom of the page?
Make the body a flex column with min-height: 100vh, and give the main content flex: 1. The main area then grows to fill the space and pushes the footer to the bottom on short pages.
How do I update the copyright year automatically?
Add a small script, for example <span id="year"></span> with document.getElementById("year").textContent = new Date().getFullYear();. On WordPress, many themes can also insert the current year for you.
Are footer links good for SEO?
A few useful footer links help search engines discover important pages such as About or Contact. Avoid long lists of keyword-stuffed links, which can look like spam.
Should the footer link to the privacy policy?
Yes. The footer is where visitors expect legal links such as the privacy policy and terms of service, and services like Google AdSense require your privacy policy to be easy to find.