Html5 Header Tag

The <header> tag was introduced in HTML 5. The <header> tag did not exist in older versions of HTML.which tag is used to part of document and indicating head sections.Headers can include headings, subheadings, navigational controls,version information, etc.The <header> tag cannot be placed another <header> element,within a <footer> and <address> tag.

Syntax:

<header>...</header>

Example Code

<!DOCTYPE HTML>
<html>
<body>
<header>
  <h1>Welcome to my admin panel </h1>
  <p>My name is Prakash</p>
</header>
</body>
</html>

Out Put :



Welcome to my admin panel

My name is Prakash





Content