Headings in HTML


 Headings in HTML

Heading in HTML is used to create heading. 
There are six types of headings in HTML. 

Types of Headings

There are six types of headings 
<h1></h1>
<h2></h2>
<h3></h3>
<h4></h4>
<h5></h5>
<h6></h6>

Example 

<html lang="en">
<head>
   <title>Introduction to HTML</title>
</head>
<body>
    <h1>Heading 1</h1>
    <h2>Heading 2</h2>
    <h3>Heading 3</h3>
    <h4>Heading 4</h4>
    <h5>Heading 5</h5>
    <h6>Heading 6</h6>

</body>
</html>

Result 


Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Description 

Heading plays an important rolein SEO. SEO stand for search engine optimization. Heading basically define the titles of sub content in the main page. Search engines look for the heading in a web page to find a suitable answer for the question. 

No comments:

Post a Comment