Header tag


Prev Tutorial Next Tutorial

<Header> tag

Header tag is used for define a header section. Header is always used top of the any html documents or page.

Note: Header tag never use within other tag like within footer tag, section tag, nav tag.

Generally Header area contains following information.

  • Wesite logo
  • Contact us
  • Login
  • List of menu
  • Social media links

Example

	
<!DOCTYPE>
<html>
<style>
header
{
background:cyan;
height:200px;
}
</style>
<body>
<header>
<p>../files/logo.png</p>
<p>Contact us: [email protected]</p>
<p>Login</p>
</header>
</body>
</html>

Result

../files/logo.png

Contact us: [email protected]

Login

Browser supported

Element
<header>YesYesYesYesYes

Prev Tutorial Next Tutorial

Advertisements
Download Projects

Advertisements

Download WhatsApp Status Video

Buy This Ad Space Only $50 per Month, Ad Size 300X250 Contact on: [email protected] WhatsApp no. 8882538826