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

前端 未结 11 1380
走了就别回头了
走了就别回头了 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

    Just remember that your h1s are used to indicate context, not layout. So, there's nothing inherently wrong with having several on a page.

    In this specific example, you need to decide if your left-nav h1s have the same contextual importance as your content h1s and your recent-news h1s. If a clear hierarchy exists in your mind, use your header tags to demonstrate it.

提交回复
热议问题