Table of Contents
INTRODUCTION
The <footer> element is used to create footer for its nearest ancestor element or root element.
This element is generally contains information about the author of the article, copyright data, Contact info, Social media links, Navigation links, Developer credits or links to related documents.
The <footer> element is not considered sectioning content, so it does not create a new section in the document outline.
Example:
<main>
<h1>Main Content</h1>
<p>This is the main content area of the page.</p>
</main>
<footer>
<p>© 2025 My Website. All rights reserved.</p>
</footer>
Main Content
This is the main content area of the page.
Usage Guidelines
- The <footer> element must not be a descendant of an <address>, <header> or another <footer> element.
- The <footer> element cannot contain <header> or another <footer> element.
- When information about the author is given through <address> element then it can be included into the <footer> element.
Tag Omission
The HTML <footer> element must have both start tag and end tag.
ATTRIBUTES
The <footer> element only has global attributes.
Frequently Asked Questions(FAQ)
What is the purpose of the <footer> element in HTML?
Can multiple <footer> tags be used in a single HTML document?
What content can be included inside a <footer> tag?
- Authorship information
- Copyright details
- Contact information
- Sitemap links
- Back-to-top links
- Related documents