Headings in HTML

There are actually six levels of headings in HTML5 which are explained as with the sequence from h1 to h6. When you add headings to content, the browser uses them to create a document outline for the page. Headings are not used to make text bold or bigger. These are use for some specific.

Syntax of Headings

There are six type of headings .
<h1> Heading No 1 </h1>
<h2> Heading No 2 </h2>
<h3> Heading No 3 </h3>
<h4> Heading No 4 </h4>
<h5> Heading No 5 </h5>
<h6> Heading No 6 </h6>

Output of above code

Heading No 1

Heading No 2

Heading No 3

Heading No 4

Heading No 5
Heading No 6

Importance of headings

Heading put a great effect in search engine. Assistive reading devices such as screen readers use the document outline to help users quickly scan and navigate through a page because the browser pic these headings bydefault and as we will learn in next SEO course that will tell us about heading. In addition, search engines look at heading levels as part of their algorithms (information in higher heading levels may be given more weight). For these reasons, it is a best practice to start with the Level 1 heading (h1) and work down in numerical order (see note), creating a logical document structure and outline.








The Best

Comment here

If you have any query, if you want to know something about any of technical course related to computer science field, if you have any suggestion about relevant to uploaded content or if you anything wrong here (any mistake in content) than please contact us. Keep in mind, comment should be according to community guidelines.