How do we create a footer for a document or section in HTML5?


Use the HTML <footer> tag to display a footer for a document or section. You can try to run the following code to implement <footer> tag −

Example

<!DOCTYPE html>
<html>
   <head>
      <title>HTML Footer Tag</title>
   </head>
   <body>
      <header>
         <h1>Simply Easy Learning</h1>
         <p>You're visiting tutorialspoint.com - tutorial hub for simply easy learning.</p>
      </header>
      <footer>
         © Copyright 2018, All Rights Reserved
      </footer>
   </body>
</html>

Updated on: 03-Mar-2020

192 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements