Include a header for a document or section in HTML5?



Use the <header> tag in HTML5 to add a header. The HTML <header> tag specifies a header for a document or section.

Example

You can try to run the following code to include a header for a document −

<!DOCTYPE html>
<html>
   <head>
      <title>HTML Header Tag</title>
   </head>
   <body>
      <header>
         <h1>Simply Easy Learning</h1>
         <p>You're visiting tutorialspoint.com -
         tutorial hub for simply easy learning.</p>
      </header>
   </body>
</html>

Advertisements