Semantic HTML for messages

I'm making a small web-chat utility and am looking for advice on which elements to use for messages. Here's what I'm thinking of using at the moment:

12:04 Ross Lorem ipsum dolor sit amet.

I'd take advantage of CSS here to add brackets around the timestamp, icons for the `cite`d user etc. I figured it would be silly (and incorrect) to use a `blockquote` for each message, although I consider the `cite` correct as it's referring to the user that posted the message. I know this isn't a) an exact science and b) entirely essential but I'd prefer to use meaningful elements rather than `span`s throughout. Are there any other elements I should consider? Any microformats?

以上就是Semantic HTML for messages的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » HTML5 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏