html h tag code example

Example 1: h1

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

Example 2: how to do h1 tag

<h1> Sample Text </h1>

Example 3: h1 tag html

<h1> heading 1</h1>

Example 4: a tag html

<!-- a tags in html are link tags that hold hyperlinks to other
 pages, or anchors in the same page -->
<a href='https://www.google.com'>Click here to visit Google.com</a>

<!-- the href attribute specifies where the link should lead -->
<!-- hope it helped! -->

Example 5: how to write h1 tag in html

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

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