HTML Heading

HTML Heading :

  1. If we want to make the some part of the text appears to be under some heading then we can use the heading tags in HTML.
  2. HTML supports 6 types of headings.
  3. These are the headings defined in HTML - <h1>,<h2>,<h3>,<h4>,<h5>,<h6>
  4. <h1> type of heading is having more importance than any other type of heading.
  5. <h6> heading is having least importance.
  6. Browser adds some empty space (margin) before each heading

HTML Heading Example :

<!DOCTYPE html>
<html>
<body>
<h1>This is H1 Heading</h1>
<h2>This is H2 Heading</h2>
<h3>This is H3 Heading</h3>
<h4>This is H4 Heading</h4>
<h5>This is H5 Heading</h5>
<h6>This is H6 Heading</h6>
</body>
</html>

above program will illustrate the headings in HTML.

HTML Heading Tips :

  1. HTML heading should not be used in web document for just making text bold.
  2. Headings are having the some importance in the Search Engine.
  3. Most important part of the webpage should be titled with H1 heading and Sub Point should have H2 type heading