Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it necessary to use H2 after h1

Is it mandatory to use H2 after h1 if text is too small then can we use h4 after h1 . and is it accessible ?

like image 734
Jitendra Vyas Avatar asked Nov 26 '22 23:11

Jitendra Vyas


2 Answers

Technically you can use any combination of those.

Semantically, it's wise to use the common order. And if the font size is too small, use CSS to change that.

With the tags h1-h6 you give a semantic meaning to a title. Where h1 is for the top level, h2 for a subdivision of h1, h3 for a subdivision of h2 etc.

You can change the appearance by setting CSS rules, which is great because now you can separate content from layout.

like image 81
Toon Krijthe Avatar answered Nov 29 '22 12:11

Toon Krijthe


You should always structure the document correctly, so yes it should be h2 after h1 - if the text is the wrong size, you should use CSS to style the headings to your taste.

like image 30
Mark Bell Avatar answered Nov 29 '22 13:11

Mark Bell