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

前端 未结 11 1402
走了就别回头了
走了就别回头了 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 16:05

    Semantically, I prefer using one h1 on the page, mainly for the title of the page. It probably doesn't matter too much with SEO, and with the way html is going with HTML5, the generic header tag will make it much simpler and this argument obsolete.

提交回复
热议问题