<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:

Syntax of <footer> Tag:

Syntax Example

<footer>
            
        </footer>

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


        <footer>
            <p>© 2024 MyWebsite. All rights reserved.</p>
            <nav>
                <a href="#about">About</a> |
                <a href="#contact">Contact</a> |
                <a href="#privacy">Privacy Policy</a>
            </nav>
        </footer>
                

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.