How to use the footer element in HTML

The <footer> element in HTML defines the footer of a document which normally contains addresses, contact numbers, copyright information, and other related information.

A footer is limited to the scope of the section it is defined in, but if defined inside the <body> tag, it is rendered as the footer of the whole document.

All global events and attributes apply to the <footer> tag.

Syntax

Examples

The following code demonstrates how to use the <footer> element:

  • The <footer> begins at line 13 and contains the <address>, <p>, and <a> tags.
  • The <address> tag italicizes the address and adds a break after the address.
  • The <p> tag writes a paragraph.
  • The <a> tag writes the text Contact Us with a link that directs the user to the Contact Us page of Educative.io. target="_blank" ensures that the link opens in a new tab instead of the current one.

Free Resources

Copyright ©2025 Educative, Inc. All rights reserved