Home HTML Tutorial for beginners 4 HTML Headings

4 HTML Headings

27
0

HTML Headings

HTML includes six types of headings. These are <h1>, <h2>, <h3>, <h4>, <h5> and <h6>. Heading makes the text inside it big and bold. But the actual importance of heading is that, search engines use headings to index the web page structure and content. A HTML document should have only one H1 tag to mark the most important heading. Place the lower level headings at the appropriate place keeping in mind the search engine optimization. h1 has the highest importance so it should define the most important heading of the document and h6 has the least importance so it should define the least important heading.

We will write a program to demonstrate all of them in one program.


<html>
<head>
<title>Program to demonstrate heading elements.
</head>
<body>
<h1>Heading using H1 tag </h1>
<h2>Heading using H1 tag </h2>
<h3>Heading using H1 tag </h3>
<h4>Heading using H1 tag </h4>
<h5>Heading using H1 tag </h5>
<h6>Heading using H1 tag </h6>
</body>

</html>


Check your progress :

Q) HTML headings are only used to make the text bold and large so that it can be attractive.

  • True
  • False

Q) Headings are important for search engine to index the web page structure.

  • True
  • False

 

 

LEAVE A REPLY

Please enter your comment!
Please enter your name here