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.
Heading 1 with a new size
Heading 2 with a new color
Heading 3 with a new bottom margin
Heading 4 with a new font style
In the above example,
font-style properties of the heading 1, heading 2, heading 3, heading 4 have been changed respectively.