HTML Headings
HTML headings are used to specify web page heading and sub heading.HTML heading is defined with <h1>
to <h6>
& <h1>
is used for most important heading while <h6>
used for least important heading.
HTML headings are used to specify web page heading and sub heading.HTML heading is defined with <h1>
to <h6>
& <h1>
is used for most important heading while <h6>
used for least important heading.
HTML headings are very important during the indexing of the website.HTML heading <h1>
specifies the main heading of the page while <h2>
specifies the subheading of the page and another heading specifies least important.
Please keep in mind that all the heading tag has it's by default font size. The font size of the heading tag could be changed by using CSS style properties.
Please keep in mind that font size gradually decreases from the h1 tag to the h6 tag.
Source Code
<h1>This is H1 tag.</h1>
<h2>This is H2 tag.</h2>
<h3>This is H3 tag.</h3>
<h4>This is H4 tag.</h4>
<h5>This is H5 tag.</h5>
<h6>This is H6 tag.</h6>
HTML heading tag has been defined by <h1>
to <h6>
and each have its own default font size. h1 default font size is 2 em ,h2 is 1.5 em,h3 is 1.3 em,h4 is 1em,h5 is 0.8em and h6 is 0.7 em.