<h1> html code example

Example 1: how to do h1 tag

<h1> Sample Text </h1>

Example 2: h1

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

Example 3: how to write h1 tag in html

<h1>This is an h1(Heading 1) tag </h1>

Example 4: h1 tag html

<h1> heading 1</h1>

Example 5: 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>

Tags:

Css Example