Proper use of HTML heading tags

前端 未结 6 1196
天命终不由人
天命终不由人 2020-12-21 16:53

I\'m having trouble understanding the proper usage of HTML headings. I\'m using books and online resources to self-learn but there are slight discrepancies on how to use the

6条回答
  •  爱一瞬间的悲伤
    2020-12-21 17:14

    Rule of thumb: If it looks fine without any CSS, it's fine. Of course, rich content will never work without styling, but strive to make it look as good as possible without CSS.

    The main difference between levels in font size. You should be fine, whatever you do with them, as long as you don't do

    Page heading
    Section heading

    Subsection heading

    Or weird stuff like that. h1 is supposed to be the biggest and most important, and while h6 (or something else, e.g. (yes, CSS will work on any tag)) might work if you style them right, they are not recommended or semantically correct.

提交回复
热议问题