heading html code example

Example 1: h1

<h1>Message Here</h1> 
<h1 style="color: red"> Message Here</h1>

Example 2: html headings

<h1>I'm the biggest heading</h1>
<h2>I'm smaller than h1</h2>
<h3>I'm smaller than h2</h3>
<h4>I'm smaller than h3</h4>
<h5>I'm smaller than h4</h5>
<h6>I'm the smallest heading</h6>

Example 3: html heading elements

<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width initial-scale=1.0"
          </head>
	<title>
		HTML Heading Elements 
	</title>
  <body>
<h1>This is a h1 element</h1>
<h2>This is a h2 element</h2>
<h3>This is a h3 element</h3>
<h4>This is a h4 element</h4>
<h5>This is a h5 element</h5>
<h6>This is a h6 element</h6>
  </body>
</html>

<!--(h stands for heading)-->

<!--For Output, go to this website:-->
<!--https://html-headings.swanith.repl.co/-->

<!--Note: You should never use headings for making text BIG or bold.-->

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>

Example 5: how to write heading tag tag in html

<h1>Biggest<h1>
<h2>Pretty Big<h2>
<h3>Medium<h3>
<h4>Pretty Small<h4>
<h5>Very Small<h5>
<h6>Smallest<h6>

Example 6: html heading tag

<h1> The biggest heading size </h1>
<h6> The smallest heading size </h6>

Tags:

Misc Example