start learning
Image 1
32026

HTML Footer tag

The HTML <footer> tag represents the footer of a section or a web page. It typically contains information that is related to the content within the enclosing section or the entire page. The content inside the <footer> tag often includes metadata, copyright notices, contact information, links to related documents, and other relevant information.

Here's an example of how the <footer> tag can be used in an HTML document:


<!DOCTYPE html>
<html>
<head>
    <title>Sample Page</title>
</head>
<body>
      <header>
        <!-- Header content here including h1 title -->
    </header>

    <main>
        <!-- Main content of the page -->
    </main>

    <footer>
        <p>© 2023 MyWebsite.com. All rights reserved.</p>
        <p>Contact: contact@mywebsite.com</p>
    </footer>
</body>
</html>

In this example, the <footer> element contains copyright information and contact details. These pieces of information are often displayed at the bottom of a webpage to provide context, legal information, and ways for users to get in touch.

Using the <footer> tag with relevant content contributes to the semantic structure of the page and makes it easier for both human readers and search engines to understand the significance and purpose of the footer content.

×