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,
<!DOCTYPE html>
<!-- Usage of the 'footer' HTML element tag -->
<html>
<body>
<!-- 'footer' HTML element tag -->
<footer>
<a href="/home">Home</a>
<a href="/about-us">About US</a>
<p>© 2021 melvingeorge.me</p>
</footer>
</body>
</html>
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 😃!