<footer>...</footer>

HTML4 HTML5

Defines a footer for nearest sectioning content (e.g., entire document <body>, section <section>, or article <article>). Typically contains authorship, copyright data, contact details, sitemap, or related links.

Both opening and closing tags are required.

Attributes: Mostly global attributes are used, such as class, id, and style.

Example

Code:

<footer style="background-color: #333; color: #fff; padding: 15px; text-align: center; border-radius: 4px;"> <p style="margin: 0 0 5px 0;">&copy; 2026 My Website. All rights reserved.</p> <p style="margin: 0; font-size: 0.85em;"><a href="#contact" style="color: #ffc107; text-decoration: none;">Contact</a> | <a href="#privacy" style="color: #ffc107; text-decoration: none;">Privacy Policy</a></p> </footer>

The browser will interpret this code as follows: