I have a message posting board, similar to a very simple forum. And it lists the title of the message, a snippet and then under that it simply says:
"Posted By: {username here}"
Since this "posted by" line is a block level element (on its own line) I am now wondering what xhtml element(s) to assign to this?
I had it originally in a <p> tag but it certainly is not a paragraph. The only other option I can see is using a <dl> definition list perhaps... kinda like:
<dl><dt>Posted By:</dt><dd>{username here}</dd></dl>
Any suggestions as to what I should use? I want to comply with web standards/accessibility as much as humanly possible. Thanks.
What xhtml element to use?
Moderator: General Moderators
- seodevhead
- Forum Regular
- Posts: 705
- Joined: Sat Oct 08, 2005 8:18 pm
- Location: Windermere, FL
I would think a p is fine. It's just a short paragraph. Give the p a class to be able to style it. Otherwise you could use a div.
To make it even more difficult: you could also place everything in a list. It is a list of messages isn't it? But the drawback of that is that it might be a bit challenging to get everything the way you want it to look. I guess that's why most forums still use tables.
To make it even more difficult: you could also place everything in a list. It is a list of messages isn't it? But the drawback of that is that it might be a bit challenging to get everything the way you want it to look. I guess that's why most forums still use tables.