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.
The following code demonstrates how to use the <footer>
element:
<footer>
begins at line 13 and contains the <address>
, <p>
, and <a>
tags.<address>
tag italicizes the address and adds a break after the address.<p>
tag writes a paragraph.<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