html5 header tag

Home > HTML5 Tutorial > html5 header tag

Best PHP Live Project Based Winter Training in Noida for more details click here



HTML5 Header Tag

The <header> element in HTML is used to embbed the header for a web document or a section.

The header tag show information related to the title of webpage and heading of the related content.

The <header> element can also be used to merge a section table of contents, a form, or any relevant logo.

Header Tags Typically Contains:

More heading tags (<h1> - <h6>)

 Logo/Icon

Authorship Information

We can have many <header> tags in single document.

Syntax:

<header> ...</header>

Lets try this by given Examples Illustrate the <header> Tags in HTML


<!DOCTYPE html>
<html>
<head>
<title>Header Tag </title>
</head>
<body>
<article>
<header>
<h1>This is the heading. </h1>
<h4>This is the sub-heading. </h4>
<p>This is the metadata.</p>
</header>
</article>
</body>
</html>