I stand up for children in need. Please join me in helping this family.

Skip to content
Steven Roland

Footer Element: Sectional Footer Content

The <footer> HTML element is used to define the footer section of a document or a section within it, such as an article or a webpage. This element is typically used to contain information about the author, copyright details, links to related documents, or contact information. The <footer> is a semantic element that helps delineate the end of a content section, providing a natural place for concluding information or navigational links.

Usage and Characteristics

The <footer> element can appear at the bottom of the <body> of a webpage or within other sections like <article>, <section>, or <aside>. It is versatile and can include various types of content, such as text, links, images, or even other structural elements like <nav>. Here is an example of how the <footer> tag can be used:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Footer Example</title>
</head>
<body>

    <h1>Welcome to My Website</h1>
    <p>This is a sample webpage demonstrating the use of the footer element.</p>

    <footer>
        <p>&copy; 2024 My Website. All rights reserved.</p>
        <nav>
            <ul>
                <li><a href="#">Home</a></li>
                <li><a href="#">About Us</a></li>
                <li><a href="#">Contact</a></li>
            </ul>
        </nav>
    </footer>
</body>
</html>

Valid Attributes for <footer>

The <footer> element does not have specific attributes beyond the global attributes, which include:

Attribute Description
class Specifies one or more class names for the element, used for CSS styling.
id Defines a unique identifier for the element, useful for linking and JavaScript.
style Contains inline CSS styles for the element.
title Provides additional information about the element, often displayed as a tooltip.

Benefits and Considerations

  • Semantic Clarity: The <footer> element provides clear semantic meaning, indicating that the enclosed content is related to the conclusion or summary of the section or document.

  • Accessibility: Using <footer> helps improve accessibility by clearly defining the end of a content section, aiding navigation for users relying on assistive technologies.

  • Versatility: The <footer> can include a wide range of content, from simple text to complex navigation structures, making it adaptable to different design needs.

In summary, the <footer> element is a key component for structuring the end of a webpage or section, offering a place for essential concluding information and navigation. Its semantic nature enhances both the readability and accessibility of web content.

Support My Work

If you enjoy my content, consider supporting me through Buy Me a Coffee or GitHub Sponsors.

Buy Me A Coffee
or