Please note, this is a STATIC archive of website technosmarter.com from 20 Jul 2022, cach3.com does not collect or store any user information, there is no "phishing" involved.
 

HTML Heading Tag | Headings


All documents start with a heading. HTML contains the six type of heading in documents part.
You can use different size of heading.

The headings are:-


<h1> - Full size for Heading .

<h2> - Smaller than <h1>Heading .

<h3> -Smaller than <h1> and <h2> .

<h4>- Smaller than <h1>,<h2>and <h3>

<h5>- Smaller than <h1>,<h2>, <h3> and <h4>

<h6> -Very small size heading . Smaller than all heading size (<h1>,<h2>, <h3>,<h4>and<h5>)

Headings


<!DOCTYPE html>
<html>
<head>
<title>Type of Heading Tags </title>
</head>
<body>
<h1>We are using HTML Heading </h1>
<h2>We are using  HTML Heading </h2>
<h3>We are using HTML Heading </h3>
<h4>We are using HTML Heading  </h4>
<h5>We are using HTML Heading </h5>
<h6>We are using HTML Heading </h6>
</body>
</html>
Run

In above example, we have used H1 to h6 heading tags and for heading, we have used "We are using HTML Heading".

Note- Every heading tag specified the size of the heading .You must use heading tags sequence wise.

Example -

<h1>Main Heading</h1>

<h2>Sub Heding </h2>

<h3>inside of sub heading </h3>

<h4>Use if needed </h4>

<h5>Use if needed </h5>

<h6>Use if needed </h6>


Please Share

Recommended Posts:-