Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags

html

How to use the footer element in HTML

Ayesha Naeem

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.

RELATED TAGS

html

CONTRIBUTOR

Ayesha Naeem
Copyright ©2022 Educative, Inc. All rights reserved
RELATED COURSES

View all Courses

Keep Exploring