Skip to the page
html reference · layout

HTML <footer> tag

closing tag
required
void element
no
lives inside
<body>
typically holds
credits, copyright, secondary links

Where it goes

Right before </body>, next to <header> and <main>. Not inside <main>.

Example

<footer>
  <p>&copy; 2025 My Site</p>
</footer>

Open this example in the editor →

Common mistakes

  • Putting it inside <main>. The footer is not main content, so it sits outside.
  • Thinking it is only for the bottom of the whole page. A <footer> inside an <article> can hold that article's author and date.
  • Burying important content in it because it is "at the bottom." If visitors need it to use the page, it belongs in <main>.

Related

Updated 24 October 2026. Practice it in the html route, or read more on MDN.