The Syntax of HTML header Tag is shown below, It has both starting and ending tags.
<header>
</header>
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.
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>