H1 in article page - site title or article title?

前端 未结 8 867
天涯浪人
天涯浪人 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:14

    On your blog's home page, I would use H1 to denote the site title and H2 for the titles of the individual blog posts that are published on the front page.

    When entering a particular article, though, I would use H1 for the article title and an anchor for the site title.

    This is a nice and semantic setup that will also be appreciated by Google when it crawls your site.

提交回复
热议问题