The <footer>
tag is used to define a footer for a document or section. A footer typically contains information like the author of the document, copyright information, contact details, or links to related documents.
Use <footer>
to group content that should appear at the bottom of a page or section. This could be copyright information, privacy policies, links to social media, or additional navigation elements.
<footer> <p>Copyright 2025 MyWebsite. All rights reserved.</p> <ul> <li><a href="#privacy">Privacy Policy</a></li> <li><a href="#terms">Terms of Service</a></li> </ul> </footer>
<!DOCTYPE html> <html> <head> <title>Footer Example</title> </head> <body> <header> <h1>Welcome to My Website</h1> </header>> <main> <h2>About Us</h2> <p>We are a web development company providing solutions for your digital needs.</p> </main> <footer> <p>Copyright 2025 MyWebsite. All rights reserved.</p> <ul> <li><a href="#privacy">Privacy Policy</a></li> <li><a href="#terms">Terms of Service</a></li> </ul> </footer> </body> </html>
<footer>
to wrap content related to the end of the document or sectionThe <footer>
tag helps to define a footer section in your webpage, improving both structure and user experience by providing useful information at the bottom of the page.
Help others discover Technorank Learning by sharing your honest experience.
Your support inspires us to keep building!