HTML <header> With Example

aimtocode

HTML Header Definition:

The HTML <header> element represents introductory content, typically a group of introductory or navigational aids. It may contain some heading elements but also a logo, a search form, an author name, and other elements

Tag Definition

It is used to define a header section for the element that contains it. It can be used as a header for a whole page (the most common usage), but can also be used as the header for an article or any other piece of on-page content.

It will come directly after the <Body> tag and enable the inclusion of navigation, logos and other header related items.

<Header> Example:



<Header> Output:

aimtocode