footer

Footer content for its nearest sectioning ancestor. Contains information about the author, copyright, related links, or metadata about the section.

Usage

Use the <footer> element for:

  • Site-wide footer with navigation, copyright, and contact info
  • Article footer with author info, tags, and share links
  • Section footer with related content or actions
  • Card footer with actions or metadata

A page can have multiple footer elements: one for the document and additional ones within articles, sections, or other sectioning content.

Examples

Default

Basic footer without additional styling.

.site

Full-width site footer with raised background.

.article

Article footer with border and muted text.

.card

Card footer with border and raised background.

.minimal

Simple centered footer with small text.

.columns

Multi-column footer layout for site footers.

Variants

Class Description
.site Full-width with generous padding and raised background
.article Top border with muted, smaller text for article metadata
.card Top border with raised background for card actions
.minimal Centered, small, muted text for simple footers
.columns Auto-fit grid layout for multi-column site footers
.sticky Sticks to bottom with background and top border

Accessibility

  • The document's main footer becomes a contentinfo landmark (only when not nested)
  • Include skip links to bypass footer navigation when appropriate
  • Use <nav> with aria-label="Footer navigation" for footer nav sections
  • Ensure sufficient color contrast for muted footer text
  • Footer links should be keyboard accessible and have visible focus states

Related

  • <header> - Complementary element for introductory content
  • <article> - Footer often contains article metadata
  • <nav> - For navigation links within footer
  • <address> - For contact information in footers
  • <main> - Footer is typically placed after main content