HTML <header> tag

You are Here:

HTML <header> tag

The <header> tag contains the introductory contents or navigational links.

The <header> tag usually contains information such as

  • heading elements (<h1> - <h6>)
  • logo
  • search form
  • an author name
  • other important HTML elements.

Note: You can have several <header> elements in a web page.

Example

HTML Online Editor
<!DOCTYPE html> <html> <body> <header> <h1>Most important heading.</h1> <h2>Less important heading.</h2> <p>Explanation for h1 regarding h2.</p> </header> </body> </html>

Attributes

There is no special attributes for <header> tag. Only Global attributes.

Reminder

Hi Developers, we almost covered 99.5% of HTML Tutorials with examples for quick and easy learning.

We are working to cover every Single Concept in HTML.

Please do google search for:

Join Our Channel

Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.

This channel is primarily useful for Full Stack Web Developer.

Share this Page

Meet the Author