HTML headings (need a bit of help understanding) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

HTML headings (need a bit of help understanding)

Can anyone tell me why are there different headings and do i have to use <h1> or can i skip it and move on to a different one?

31st Dec 2017, 3:06 PM
Nemanja Šolaja
Nemanja Šolaja - avatar
2 Answers
+ 4
The different headings are to to with different sizes, with h1 being the largest heading and h6 being the smallest. You don't have to use h1 in your code, you can just skip to the size of heading you want.
31st Dec 2017, 3:24 PM
Robyn A
Robyn A - avatar
+ 1
The headings serve to establish different levels of the text on the web page, from the title (which would be h1), subsections (which will be h2) and the following. If within each subsection it is required to separate into sections (or sub-subsections), then you include level h3 and so on.
31st Jan 2018, 7:55 PM
Joaquin Rangel
Joaquin Rangel - avatar