The <footer>
tag is used to define a footer for a document or section. It is typically used to contain information about the author, copyright information, links to related documents, and other information that is not part of the main content of the document.
The <footer>
tag is a semantic tag, which means that it provides information about the content it contains. This information can be used by search engines and other tools to better understand the structure and meaning of the document.
Here are some examples of how the <footer>
tag can be used:
In this example, we use the <footer>
tag to create a simple footer that contains copyright information:
<footer>
<p>Copyright © 2021 My Company. All rights reserved.</p>
</footer>
In this example, we use the <footer>
tag to create a footer that contains links to related documents:
<footer>
<p>Related Documents:</p>
<ul>
<li><a href="document1.html">Document 1</a></li>
<li><a href="document2.html">Document 2</a></li>
<li><a href="document3.html">Document 3</a></li>
</ul>
</footer>
In this example, we use the <footer>
tag to create a footer that contains contact information:
<footer>
<p>Contact Us:</p>
<ul>
<li>Phone: 555-1234</li>
<li>Email: info@mycompany.com</li>
<li>Address: 123 Main St, Anytown USA</li>
</ul>
</footer>
These are just a few examples of how the <footer>
tag can be used. The possibilities are endless, and the tag can be customized to fit the needs of any document or section.
The <footer>
tag is a powerful tool for creating footers that provide important information about a document or section. By using this tag, you can improve the structure and meaning of your documents, and make them more accessible to search engines and other tools.