How to make a footer in HTML
The <footer> tag, what usually goes in it, a three-column footer that stacks on phones, keeping it at the bottom of a short page, a fixed footer that does not cover content, and one footer across several pages.
Have the file already? Upload it and get a link anyone can open. Free plan, no card.
Get a link freeA footer is the strip at the bottom of a page with the copyright line, contact details and a few links. HTML has a tag for it, and a few lines of CSS handle the two problems people hit most: a footer that floats halfway up a short page, and a fixed footer that hides the last lines of text.
The basic footer
Put a <footer> after your main content, just before </body>:
<footer> <p>© 2026 Your Studio</p> <p><a href="mailto:hello@example.com">hello@example.com</a></p> </footer>
© prints the © sign. A mailto: link opens the visitor's email app with your address filled in. The <footer> tag looks the same as a <div> on screen, but screen readers announce it as the page footer, so people using them can jump straight to it.
Style it
Add CSS in a <style> block in the <head>:
<style> footer { background: #1f2430; color: #e8e8e8; padding: 24px 16px; text-align: center; font-size: 14px; } footer a { color: #9cc3ff; } </style>
Set a link color inside the footer, or links keep the default blue, which is hard to read on a dark background. Text color and centering are covered in more detail in how to change text color in HTML and how to center text in HTML.
Columns that stack on phones
For a footer with sections such as About, Links and Contact, use a grid:
<footer class="cols"> <div><h4>About</h4><p>Small design studio.</p></div> <div><h4>Links</h4><a href="work.html">Work</a><br><a href="about.html">About</a></div> <div><h4>Contact</h4><a href="mailto:hello@example.com">Email us</a></div> </footer>
footer.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; text-align: left; }
auto-fit with minmax puts the three sections side by side on a laptop and drops them into one column on a phone, with no media query.
Keep the footer at the bottom of a short page
On a page with little content, the footer sits right under the text with empty space below it. To push it to the bottom of the window, wrap the content in <main> and add:
html, body { height: 100%; margin: 0; } body { display: flex; flex-direction: column; min-height: 100vh; } main { flex: 1; }
main grows to fill the space, so the footer lands at the bottom of the screen on short pages and after the content on long ones. Use min-height, not height, on body, or long pages get cut off.
A footer that stays on screen
footer { position: fixed; bottom: 0; left: 0; right: 0; } keeps the footer visible while people scroll. It also covers the bottom of the page, so add padding-bottom to body equal to the footer height, for example body { padding-bottom: 80px; }. On phones a fixed bar takes a lot of the screen; keep it to one line or use the normal footer above.
When the footer looks wrong
- ✓It sits in the middle of the page: the page is shorter than the window. Use the flex layout above.
- ✓It overlaps the last paragraph: it is position: fixed or absolute without padding on body. Add padding-bottom to body, or remove the position rule.
- ✓There is a white gap below it: body still has the browser's default 8px margin. Set body { margin: 0; }.
- ✓The year is out of date: type it by hand, or use <span id="y"></span> with <script>document.getElementById("y").textContent = new Date().getFullYear()</script> to fill it in when the page opens.
The same footer on several pages
Plain HTML has no include tag, so each page carries its own copy and a changed email address means editing every file. AI tools such as Claude and ChatGPT will paste the same footer into each page if you ask, but the copies drift apart over time.
In FileShare Pro, a site under Sites can hold several pages under one link. In the site settings, under Navigation & chrome, add the footer HTML once and it is added to every page when you publish. The Free plan includes one site of up to three pages: a multi-page site without a build step.
Share the page
Open the file in a browser, check the footer on a narrow window, then share it. With FileShare Pro you upload the HTML file from the dashboard, copy the link and send it; it opens in any browser and the person opening it needs no account. Upload a new version over the old one and the link stays the same. Sign up free to share your first page.
Frequently asked
Add <footer> … </footer> after your main content, just before </body>, with your copyright line and links inside. Style it with CSS such as footer { padding: 24px; text-align: center; }.
Wrap the content in <main>, give body display: flex; flex-direction: column; min-height: 100vh; and give main flex: 1. The footer then sits at the bottom of short pages and after the content on long ones.
Type © in the HTML, for example <p>© 2026 Your Name</p>. The browser shows it as ©.
position: fixed takes the footer out of the page flow. Add padding-bottom to body equal to the footer height so the last content can scroll above it.
Drop the file, copy the link — live in seconds, free plan included.
Start sharing free