HTML h1 h6 Tags
HTML h2 - h6 Tags
The h2 to h6 tags are used to define HTML headings. The h2 tag defines the most important heading while the h6 tag defines the least important heading. For better SEO, we have to only use h2 once per page.
Heading Levels
- < h1 >
- < h2 >
- < h3 >
- < h4 >
- < h5 >
- < h6 >
Explanation:-
- h1 is defined as the most important heading. Google also considers it essential and it is therefore a factor in SEO (Search Engine Optimization). It has the largest font size.
- h2 is the second most important heading. It is basically used for improving the overall structure of the webpage. It has the second-largest font size.
- h3 is the third most important heading and it helps in improving the overall structure of the webpage. It has the third-largest font size.
- h4 is the fourth most important heading and it helps in improving the overall structure of the webpage. It has the fourth-largest font size.
- h5 is the fifth most important heading and it helps in improving the overall structure of the webpage. It has the fifth-largest font size.
- h6 is the sixth most important heading and it helps in improving the overall structure of the webpage. It has the smallest font size as compared to the rest of the headings.
Code Explanation
All Tutorials related to HTML Tags List
HTML Comment Tag
DOCTYPE in HTML
HTML a Tag
HTML abbr Tag
HTML acronym Tag
HTML address Tag
HTML article Tag
HTML aside Tag
HTML audio Tag
HTML b Tag
HTML base Tag
HTML bdi Tag
HTML bdo Tag
HTML blockquote Tag
HTML body Tag
HTML br Tag
HTML button Tag
HTML canvas Tag
HTML caption Tag
HTML cite Tag
HTML code Tag
HTML col Tag
HTML colgroup Tag
HTML data Tag
HTML datalist Tag
HTML dd Tag
HTML del Tag
HTML details Tag
HTML dfn Tag
HTML dialog Tag
HTML div Tag
HTML dl Tag
HTML dt Tag
HTML em Tag
HTML embed Tag
HTML fieldset Tag
HTML figcaption Tag
HTML figure Tag
HTML footer Tag
HTML form Tag
HTML h1 - h6 Tags
HTML head tag
HTML header Tag
HTML hr Tag
HTML html Tag
HTML i Tag
HTML iframe Tag
HTML img Tag
HTML input Tag
HTML ins Tag
HTML kbd Tag
HTML label Tag
HTML legend Tag
HTML li Tag
HTML link Tag
HTML main Tag
HTML mark Tag
HTML meta Tag
HTML meter Tag
HTML nav Tag
HTML noscript Tag
HTML object Tag
HTML ol Tag
HTML optgroup Tag
HTML option Tag
HTML output Tag
HTML p Tag
HTML param Tag
HTML picture Tag
HTML pre Tag
HTML progress Tag
HTML q Tag
HTML ruby Tag
HTML s Tag
HTML samp Tag
HTML script Tag
HTML section Tag
HTML select Tag
HTML small Tag
HTML source Tag
HTML span Tag
HTML strong Tag
HTML style Tag
HTML sub Tag
HTML summary Tag
HTML sup Tag
HTML svg Tag
HTML table Tag
HTML tbody Tag
HTML td Tag
HTML template Tag
HTML textarea Tag
HTML tfoot Tag
HTML th Tag
HTML thead Tag
HTML time Tag
HTML title Tag
HTML tr Tag
HTML track Tag
HTML u Tag
HTML ul Tag
HTML var Tag
HTML video Tag
HTML wbr Tag