Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / HTML

footer — section or page footer

The footer element represents a footer for its nearest ancestor section or the whole page, containing authorship, copyright, or related links.

Version: WHATWG HTML Living Standard; index snapshot date recorded separately

Syntax

<footer>...</footer>

footer represents a footer for its nearest ancestor sectioning element, such as article or section; without one, it applies to body. It does not create a section. A page may have multiple footers, and they need not appear last.

It accepts flow content, but no descendant may be a header or footer element. Both tags are required. Global attributes are supported. Put author contact details in address, optionally inside footer.

In the example, the first footer belongs to article; the second belongs to the whole page.

Examples

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Footer example</title>
</head>
<body>
  <h1>Learning journal</h1>
  <article>
    <h2>First lesson</h2>
    <p>Today I learned semantic HTML.</p>
    <footer>
      <p>Author: Alex</p>
    </footer>
  </article>
  <footer>
    <p>Copyright 2026 Learning journal</p>
  </footer>
</body>
</html>

Result

Learning journal
First lesson
Today I learned semantic HTML.
Author: Alex
Copyright 2026 Learning journal

The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.

Sources