HTML - Header Tag


Advertisements


Description

The HTML <header> tag specifies a header for a document or section.

Example

Live Demo
<!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>

This will produce the following result −

Global Attributes

This tag supports all the global attributes described in HTML Attribute Reference

Event Attributes

This tag supports all the event attributes described in HTML Events Reference

Browser Support

Chrome Firefox IE Opera Safari Android
Yes Yes Yes Yes Yes Yes

html_tags_reference.htm

Advertisements