Most weblogs provide users the possibility to leave comments. Comments on weblog posts even have their own Comment API. Dimitri Glazkov started a discussion on his blog on the semantics of comments. He proposes to regard comment entries as definition lists (
To me it is difficult to consider one comment as a list of definitions. I think it’s better to conceive a comment as a (small) article on it’s own. Therefore I would propose the following HTML for comments:Tags: comments, dimitri glazkov, html, semantics
<div class="comments"> <h3> <a href="permalink">Comment Title</a> </h3> <p class="author"> <a href="mailto:authorEmail">Author Name</a> </p> <p class="source"> <a href="authorSiteUrl">Author Site</a> </p> <p class="description"> Text of the comment </p> </div>
- The wrapper-
divis arbitrary. It depends on your markup if you want to use it.
- The header element
h3is also arbitrary. It depends on your markup whether you need a
h3or something else.
- Depending on your markup, you could get rid off some classes too.