Get Website Learn Coding Tech Story

HTML Examples

Html Heading

Heading is the most important things in any documents. Any kind of documents starts with a heading. We use different sizes for your headings. Html also have six levels of headings, which use the elements <h1>, <h2>, <h3>, <h4>, <h5>, and <h6>. While displaying any heading, browser adds one line before and after that heading.

Importance of Heading in Html

Don't use headings to make text big or bold. Use Html headings only for headings.

Html heading helps in SEO. Search engines use your headings to index the structure and content of your web pages.

It is important to use headings to present documents more user friendly in nature.

Html Heading Elements

The h1 element specifies most important and biggest heading and h6 is the least and smallest heading in a Html document.

Heading example

<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>