Headings in HTML help users and search engines in defining the hierarchy and the structure of content in a web page. HTML offers six levels of heading tags, right from
Types of Headings
HTML offers six levels of heading tags, right from
<h1> tag defines the most important heading in the web page and similarly
<h6> defines the least important heading.
Importance of Headings
Headings in HTML serve various important purposes. Headings help in defining the hierarchy and structure of the content in a web page. Some of the other important uses are defined below.
Customizing the Headings
Note that each heading has a default font properties such as the font size, color, typeface, etc. These properties of headings can be customized using the CSS font properties.
In the above example,
font-style properties of the heading 1, heading 2, heading 3, heading 4 have been changed respectively.