Search code examples
htmlsemanticsmarkup

Table or lists for forum threads


I'm wondering which would be more semantic when writing the markup for a list of recently active forum threads: A table, some kind of definition list, or a mixture of both?

To give you an example of what I mean: Screenshot of forum thread list

I'm thinking that the best way would be to let each thread be an unordered list item containing a defintion list that contains the thread title, number of posts, etc. But I wanted to get other people's input as well, because I'm honestly not sure.


Solution

  • This is clearly tabular data, and belongs in a <table> element - for semantical as well as practical reasons.

    The direct page links in the second column might be a good fit for a ol element .

    There is a very interesting discussion on the general question of when table elements are applicable here: Proper definition for "tabular data" in HTML