DEV Community

Cover image for Which HTML element tag can be used to represent and show footer or ending content to the user?
MELVIN GEORGE
MELVIN GEORGE

Posted on • Originally published at melvingeorge.me

Which HTML element tag can be used to represent and show footer or ending content to the user?

Originally posted here!

The best HTML element to represent and show footer or ending content to the user is the footer HTML element tag.

For example, the footer HTML elements tag is used to add footer parts of a website like copyright information, links to other pages, article author information, etc. that are seen by the user as ending content on the website.

The footer HTML element tag can be written like this,

<!-- Usage of the 'footer' HTML element tag -->

<!DOCTYPE html>
<html>
  <body>
    <!-- 'footer' HTML element tag  -->
    <footer>
      <a href="/home">Home</a>
      <a href="/about-us">About US</a>
      <p>&copy; 2021 melvingeorge.me</p>
    </footer>
  </body>
</html>
Enter fullscreen mode Exit fullscreen mode

As you see from the above code we have used the a (anchor) tags to link the other pages in the website and the p (paragraph) tag to show the copyright information inside the footer HTML element tag that is ending content when a user visits the website.

Some common use cases for the footer HTML element tags are to hold:

  • Navigation links
  • Related page links
  • Article author information
  • Copyright information

etc. and everything that is footer or ending content to the user who visits the website.

See the above code live in JSBin.

That's all 😃!

Feel free to share if you found this useful 😃.


Top comments (0)