In which element should I enclose an
's comments?

后端 未结 2 1279
[愿得一人]
[愿得一人] 2021-02-12 15:50

I\'m working on a blog that implements Disqus comments and I\'m making an effort to make as much use of HTML5 semantic markups as possible.

Here\'s an example <

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-12 16:48

    There is an example in the HTML5 spec for a blog post with comments. Which makes sense, in my opinion.

    Your example could look like:

      

    Title

    Posted on .

    Lorem ipsum dolor sit amet...

    Lorem ipsum dolor sit amet...

    Comments


    Side note: I think your "posted-on" would better fit into a footer instead of a header. So your header could be omitted because it would only contain the heading. So your example could look like:

      

    Title

    Posted on .

    Lorem ipsum dolor sit amet...

    Lorem ipsum dolor sit amet...

    Comments

提交回复
热议问题