Is it alright to use multiple h1 tags on the same page, but style them differently?

前端 未结 11 1404
走了就别回头了
走了就别回头了 2020-12-02 15:38

I have a webpage that I use h1 tags multiple times within various DIVs and I style h1 for each div to be the appropriate size.

For example...

#conten         


        
11条回答
  •  甜味超标
    2020-12-02 15:57

    In general, you should only have one h1 per page, and that h1 should succintly represent the content on that page. As long as you are willing to style with CSS, find out which level of headings (h2, h3, h4, etc) that properly represent the headings you want to use, and then style them instead.

提交回复
热议问题