HTML - Heading Tag With Syntax

Every HTML document has some headings that represent what the content following it is about. There are 6 level of heading in a webpage from

,

...

The content or text within the heading tag appears in bold and larger font. The highest level of heading tag is

. The lowest level of heading tag is
.

Heading Tag <h1> ... <h6>

  • Every HTML document has some headings that represent what the content following it is about. 
  • There are 6 level of heading in a webpage from <h1>, <h2> ... <h6> 
  • The content or text within the heading tag appears in bold and larger font. 
  • The highest level of heading tag is <h1></h1>. 
  • The lowest level of heading tag is <h6></h6>.

HTML Code


 <h1>Heading 1</h1>
  <h2>Heading 2</h2>
  <h3>Heading 3</h3>
  <h4>Heading 4</h4>
  <h5>Heading 5</h5>
  <h6>Heading 6</h6>

HTML Output

HTML Heading
Heading tag is widely use to make title bold, it automatically increase or decrease in font size. eg. If you use <h1> tag than the tax will be the bit larger than normal text. You have to decide where you want to use the heading tag.

Normally h1, h2, and h3 tags are mostly used in websites and blog, heading also most important part of blogs, website and any other thing.

While using heading tags you must have to be careful because Heading tags also affect on your site SEO. 

HTML Code

<html>
<head> </head>
<body>
 <h1>Chaper 1</h1>
  <p> This is chapter 1.</p>
 <h2>Introudction</h2>
  <p>computer is derived from Greek word 'computare'.</p>
 <h3>Characterstics</h3>
  <p>1. Speed 2. Storage 3. Automatic so on.</p>
 <h4>Application of Computer</h4>
  <p>1. Home 2. Desktop publication 2. Health </p>
 <h5>Anything</h5>
  <p> the quick brown fox jumps over the lazy dog.</p>
 <h6>The Dog</h6>
  <p> the quick brown fox jumps over the lazy dog.</p>  
 </body>
</html>

HTML Output

HTML Heading Tag.

You May Also Like...