语义标记聊天

Semantically mark up a chat

我是 HTML 的初学者,我正在寻找一种语义正确的方式 来标记作者的昵称、作者的照片和他在聊天中的消息.

聊天的形状是这样的:

WHATWG's living standard says:

This specification does not define a specific element for marking up conversations, meeting minutes, chat transcripts, dialogues in screenplays, instant message logs, and other situations where different players take turns in discourse.

Instead, authors are encouraged to mark up conversations using p elements and punctuation. Authors who need to mark the speaker for styling purposes are encouraged to use span or b. Paragraphs with their text wrapped in the i element can be used for marking up stage directions.

哪个,呃,好吧,但是你去吧。不过,您可以查看是否有合适的 microdata format and ARIA 注释。