What is Heading Tag in HTML and Why We Use HTML Heading? - Code Phactory

 

What is HTML Heading Tag


What is Heading Tag in HTML and Why We Use HTML Heading?


HTML Heading or HTML Heading tag can be defined as a title or a subtitle which you want to display on the webpage and Headings help in defining the hierarchy and structure of the web page content. Heading which is prominent for any person who wants to reveal their audience on that heading what they declared in. Heading is main thing to be consider for getting user attention using HTML Heading Tag. Headings in HTML helps the search engine to understand and index the structure of web page. 


Why we use Headings in HTML


Importance of Headings 


  • HTML headings provide valuable information by highlighting important niche or topics and the structure of the document.

  • Headings use size to reveal their relative importance.

  • Don't use headings to make your text look big or bold. Use only them for highlighting the heading of your document and show the document structure.

  • The exact size at which each browser shows the headings can vary slightly.

  • Users can also adjust the size of text in their browser.

  • You will see how to control the size of text, its color, and the fonts used when we come to look at CSS. 

  • like search engines such as Google, use headings to index the structure and content of the web pages so use them very wisely in your webpage.

HTML Heading Tags



Levels of Headings 


HTML has six levels of headings that browsers display the contents of headings at different sizes.

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

<h1> -----> It is highest section level heading or it's one of them that's called largest heading of HTML.
<h2> -----> It is second highest section level heading or it's also called second largest heading of HTML after h1 heading.
<h3> -----> It is third highest section level heading after h1 and h2 headings.
<h4> -----> It is fourth section level heading and fourth last lowest heading of HTML
<h5> -----> It is fifth section level heading and fifth last lowest heading of HTML
<h6> -----> It is lowest section level heading or it's one of them that's called lowest heading of HTML




If you have any query regarding this so let me know so as I can serve you.


Wants to know more about HTML

Click below 

Html Tags and Attributes with examples

Basic Structure of an Html Document

What is HTML?


Post a Comment

10 Comments