HTML5 <footer> Tag

The HTML <footer> tag is used to represent a footer for its nearest sectioning content or sectioning root element. A footer typically contains information about the author of the section, copyright data or links to related documents.

The only content permitted inside this element is flow content. However, there should be no <footer> or <header> descendants. Both the starting and ending tag are mandatory for this element. The parent of the <footer> tag can be any element that accepts flow content. Note that a <footer> element must not be a descendant of an <address>, <header> or another <footer> element.

The <footer> element is not sectioning content and therefore doesn’t introduce a new section in the document outline.

The following style is applied to this element by default:

footer {
  display: block;
}

Here is an example of using this tag:

<footer>
  This tag usually contains some copyright info or perhaps some author info for an <article> etc.
  It can also contain links to other articles and pages etc.
</footer>

Attributes

This element only accepts global attributes.

Further Reading

  1. Read more about the HTML <footer> element on MDN.
  2. You can also read the HTML <footer> tag reference on W3C.

Reader Comments

1. You can register or login to post a comment. Asking readers to register improves the quality of discussion.

2. As a registered user, you will also get to access features like choosing between a light and dark theme or anything else that we might implement in future.

Follow Us For Updates

FacebookTwitterGoogle+
Go To Top