What are HTML headings?


What are HTML headings?

HTML headings or HTML h tags can be defined as titles or subtitles to display on web pages. If you place the text inside the

<h1>………</h1> heading tag, it will appear in bold in the browser, and the size of the text will depend on the number of headings.

There are six different HTML headings defined by the tags < h1 > to < h6 > from the highest level h1 (main heading) to the lowest level h6 (the least important heading). h1 is the largest heading tag, and h6 is the smallest. Therefore, h1 is used for the most important headings and h6 for the least important headings. HTML headings help search engines understand the structure of web pages and index them.

  • HTML headings can also be used with nested elements.
  • Heading elements (h1---h6) should be used for headings only. They should not be used to make text bold or big.
  • Level 1 is the highest or primary level of heading, Level 2 is a subheading of Level 1, Level 3 is a subheading of Level 2, and so on through Levels 4 and 5. The number of headings to use in a paper depends on the length and complexity of the work. If only one level of title is needed, use Level 1.

Things to remember when writing headings and subheadings

  1. Keep headings concise. Headings are typically one to five words long, like a title.
  2. Use headings to enhance, not replace. Headings (and subheadings) should supplement the substance of your paper, not take the place of your topic sentences.
  3. Please do not overdo it.

Bigger Headings

Each HTML heading has a default size. However, you can specify the size for any heading with the style attribute using the CSS font-size property.