The <footer> element represents a footer for its nearest sectioning ancestor (or for the whole page when that ancestor is <body>). It commonly holds copyright, author credits, or related links.
Put author contact details in <address> inside the footer when needed. <footer> is not sectioning content — it does not start a new outline section.
Baseline · Widely available.
Not deprecated and not experimental. Stable across modern browsers since about July 2015.
Landmark tip.
A page-level footer maps to the contentinfo landmark. Nested in article, aside, main, nav, or section, it is not contentinfo.
Syntax
HTML Syntax
syntax.html
<footer>flow content</footer>
Both start and end tags are required. Content is flow content, but not <header> or another <footer>.
Reference
Attributes
<footer> has no element-specific attributes. Use globals when needed:
Nesting: no header/footer inside; not inside address.
One line: use <footer> for the footer of a page or a section — not as a generic box.
UA style
Default CSS Settings
Typical user-agent styling (exact values can vary by browser):
default.css
footer {
display: block;
}
Layout, padding, and borders come from your stylesheet — the element itself is a block box with no special default chrome.
Frequently Asked Questions
The footer element represents a footer for its nearest sectioning ancestor (or the whole page when that ancestor is body). It usually holds copyright, author info, or related links.
No. It only supports global attributes such as class, id, and lang.
Yes. You can have a page-level footer and also footers inside article, section, or similar sectioning elements.
div is a generic box with no meaning. footer tells browsers and assistive tech that the block is a footer for its section or the page.
A footer whose nearest sectioning ancestor is body maps to the contentinfo landmark. Nested inside article, aside, main, nav, or section, it is generic (not contentinfo).
No. A footer must not contain header or footer descendants, and it must not be nested inside address or another footer.