HTML header Tag

HTML header Tag

HTML header Tag defines a head section of the web page or head section of another section of the web page. HTML header tag is semantic part of HTML5. HTML header tag usually contain introductory part.

Syntax of HTML header Tag

The Syntax of HTML header Tag is shown below, It has both starting and ending tags.

<header>
</header>

Usage of HTML header Tag

HTML header Tag is used in HTML5 to specify the opening section. HTML header section mostly contain the headings, logo, navigation menu, slider, banner, video etc.

One web page can contain more than one HTML header tags, mostly header tag is the first section of a web page but you can use it later as well.

HTML header tag cannot be used inside footer tag, address tag or inside any other header tag.

HTML header tag is a block level element.

Example of HTML header Tag

Simple example of HTML header Tag is shown below.

<header>
<nav>
<ul>
<li><a>Home</a></li>
<li><a>About</a></li>
<li><a>Contact Us</a></li>
</ul>
</nav>
<h1>HowToCodeSchool.com</h1>
<p>Learn HTML online!</p>
</header>

Browser Support for HTML header Tag

HTML header Tag is supported by all major browsers including Safari and Internet Explorer.

Global Attributes Support in HTML header Tag

The HTML header Tag supports all Global Attributes.

Event Attributes Support in HTML header Tag

The HTML header Tag supports all Event Attributes.

HTML header Tag Video

Watch our video on HTML header Tag.

Post a Comment

Previous Post Next Post