Topic 29 of 57 5. HTML Layout and Structure Interactive Tutorial

HTML Footer Tag: Uses, Structure, and Code Examples

11 mins read Last updated: 12 Nov 2026 14,700 views

Topic Overview & Definition

Key Question
How do you structure an accessible, informative website footer using the <footer> tag?
Direct Answer & Overview
The HTML
tag defines a footer for a webpage or section. It typically contains copyright information, authorship details, terms of service and privacy links, contact data, social media icons, and secondary sitemap navigation.

Comprehensive Step-by-Step Concepts

1) Semantic Meaning of
: The
landmark indicates concluding content for its nearest sectioning ancestor (either the or an
/
). 2) Document-Level vs Section-Level Footers: - Document Footer: Located at the bottom of the page, holding company copyright, legal disclaimers, and site navigation. - Article/Section Footer: Located inside an
, holding author information, publication date, tags, and category links. 3) Integrating Contact Information (
): The semantic
element should be placed inside the footer to enclose contact info (email, phone, postal address) of the document's author or company. 4) Screen Reader Accessibility: Assistive technology recognizes
as the 'contentinfo' landmark, enabling users to jump straight to legal and contact information. 5) Styling Modern Multi-Column Footers: With CSS Flexbox or CSS Grid, footers are structured into responsive columns (Company, Product, Resources, Legal) that stack cleanly on mobile screens.

Runnable HTML5 Code Example & Practical Implementation

index.html
HTML Editor
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Semantic Footer Showcase</title>
    <style>
        .site-footer { background: #0f172a; color: #94a3b8; padding: 40px 20px 20px; font-family: system-ui, sans-serif; }
        .footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; max-width: 1100px; margin: 0 auto; }
        .site-footer h4 { color: #f8fafc; margin-top: 0; }
        .site-footer ul { list-style: none; padding: 0; margin: 0; }
        .site-footer a { color: #cbd5e1; text-decoration: none; }
        .site-footer a:hover { color: #38bdf8; }
        .footer-bottom { border-top: 1px solid #1e293b; text-align: center; margin-top: 30px; padding-top: 20px; font-size: 0.85rem; }
    </style>
</head>
<body>
    <main>
        <h1>Main Content Area</h1>
        <p>Scroll down to inspect the semantic footer architecture.</p>
    </main>

    <!-- Semantic Document Footer -->
    <footer class="site-footer">
        <div class="footer-grid">
            <div>
                <h4>OperateTools</h4>
                <p>Empowering developers with intuitive code editors, reverse image analysis, and web tools.</p>
            </div>
            <div>
                <h4>Quick Links</h4>
                <ul>
                    <li><a href="#tools">All Developer Tools</a></li>
                    <li><a href="#tutorials">HTML5 Tutorials</a></li>
                    <li><a href="#pricing">API Pricing</a></li>
                </ul>
            </div>
            <div>
                <h4>Contact Support</h4>
                <address>
                    Email: <a href="mailto:support@operatetools.com">support@operatetools.com</a><br>
                    San Francisco, California, USA
                </address>
            </div>
        </div>
        <div class="footer-bottom">
            <p>&copy; 2026 OperateTools Inc. All rights reserved. <a href="#privacy">Privacy Policy</a> | <a href="#terms">Terms</a></p>
        </div>
    </footer>
</body>
</html>

Key Takeaways, Best Practices & Standards

Best Practice & Standards
Place legal copyright, terms of service links, and contact information inside
, and wrap contact info in an
tag.

Common Technical & Interview Questions

Q

Q1: Can a webpage contain more than one
tag?

A1: Yes! While there is typically only one page-level
for the , individual
and
elements can also have their own localized
tags.
Q

Q2: What is the proper HTML element for wrapping contact details inside a footer?

A2: The
element. It specifically marks up contact information for the nearest
or the root document.
Q

Q3: Can a
tag be placed inside a
or another
?

A3: No. W3C specifications strictly forbid nesting
tags inside a
,
, or another
tag.