What is an HTML Heading?

Headings are highlighting overall topic of the current page. There are six levels of headings, from h1 to h6. H1 headings should be used as main headings, followed by H2 headings, then the less important H3 headings, and so on.

main-heading

HTML Source Code :

<html> <body> <h1> Main Heading </h1> </body> </html>

< H1 > tag should use only once in a page and it is supposed to be the main heading of the page. Each heading has a line break before and after of each heading display, and don't use headings to make text bold. Heading tags are used by the search engines to identify words which are more important than the rest of the page content. There are six levels of heading and each using a slightly smaller font size.

html-headings

HTML Source Code :

<html> <body> <h1> Heading 1 </h1> <h2> Heading 2 </h2> <h3> Heading 3 </h3> <h4> Heading 4 </h4> <h5> Heading 5 </h5> <h6> Heading 6 </h6> </body> </html>

Heading Align

Heading tags are the simplest way to divide up your document. You can poition headings of a page in specific locations like RIGHT, LEFT and CENTER.

heading-align

HTML Source Code :

<html> <body> <h1 align=center> Heading center </h1> <h2 align=right> Heading right </h2> <h3 align=left> Heading left </h3> </body> </html>