header in html code example

Example 1: header html element

<header>
  <h1>Main page heading here</h1>
  <p>Posted by John Doe</p>
</header>

<!--
  A <header> element typically contains:
	- one or more heading elements (<h1> - <h6>)
	- logo or icon
	- authorship information
-->

Example 2: Html header

<header>
  <h1>Main page heading here</h1>
  <p>Posted by John Doe</p>
</header>

Example 3: adding header in html

<h> swag </h>

Example 4: headers htnk

<h1>Header 1</h1>
<h2>Header 2</h2>
<h3>Header 3</h3>
<h4>Header 4</h4>
<h5>Header 5</h5>
<h6>Header 6</h6>
<p>p tag</p>

Tags:

Html Example