<footer> Tag in HTML
The <footer> tag in HTML is used to define a footer for a document or section. This typically contains information such as the author’s name, copyright data, links to related documents, or contact information.
Key Points on <footer> Tag:
- The <footer> tag is used at the bottom of a page or a section to provide additional context.
- It often contains metadata, navigation links, social media links, or legal disclaimers.
- Multiple <footer> elements can be used in a single document, especially if sections of the page need their own footers.
- It improves the structure of the document by indicating the end of a content area.
Syntax of <footer> Tag:
Syntax Example
Example of <footer> Tag in HTML:
This example demonstrates how to use the <footer> tag to add a footer section at the bottom of a webpage.
Code Example
Output
The <footer> tag provides a consistent place for information about the site and helps improve navigation, especially for longer pages. It’s commonly styled to stand out and is essential for web accessibility and user experience.