H1 in article page - site title or article title?

前端 未结 8 745
天涯浪人
天涯浪人 2021-02-01 00:27

Within an article-oriented page (such as a blog post), the

element (level 1 heading) is commonly used to markup either:

  • the blog title (i.e

8条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-01 01:09

    There should only be one, and there must be one only

    h1
    ; usually this is the page title. Then it should follow h2, h3 etc.

    So your page can look like this (without all the other html tags)

    h1
      h2
      h2
        h3
    ..etc
    

提交回复
热议问题