What is best practise for a simple forum thread?

  • <a href="http://www.juegosdechicasonline.com/juegos-de-dora.html">juegos de dora</a> <a href="http://www.juegosdechicasonline.com/juegos-de-pucca.html">juegos de pucca</a> CalvinBud over 5 years ago

6 answers

This was chosen as the best answer

A list.

Answered over 7 years ago by Samuel Cotterall

Unordered List. No doubt about it...

It's a list of topics... A list of responses... A list of things people are saying... However you look at it, it is a list.

Have a peek at this previous thread:


Answered over 7 years ago by Dwayne Anderson

A list. A forum thread is a listing of messages and it should be interpreted as a list, not as a table, tables are for tabular data, and tabular data alone, div's should be out of the question by default

Answered over 7 years ago by Razvan Pavel

Forum threads aren't tabular data, so they shouldn't be a table.

I prefer lists, since that's a fairly good semantic fit. You also have the added benefit of styling flexibility. It's easy to make a list act like a table. It's harder to make a table act like a list.

Whether you use ordered or unordered lists is up to you. Ordered lists might be a good fit, if you consider them to be a chronological list of responses to the thread topic...

Answered over 7 years ago by Justin Hileman

I'm pretty sure you shouldn't use tables, but after that, it's probably your call.

I'd go for a few <div class='message'> tags after each other.

Answered over 7 years ago by Wander Nauta
  • This I'd rather not do. That would be really unsemantic. David Andersson over 7 years ago
  • With that reasoning, you would never use a div element. Lists are not supposed to contain block level elements, so if there's any structure inside of the message, you shouldn't use an li, so a div would be better. It depends on the complexity of the messages allowed. neatlysliced over 7 years ago
  • I agree with neatlysliced's reasoning. o.k.w over 7 years ago
  • @neatlysliced, o.k.w. -- List items are allowed to include block level elements (with the exception of list items inside DIR or MENU, but both of those have been deprecated since HTML 4). Justin Hileman over 7 years ago
  • #justin: you are right as LI is a block type by default. I do still feel complexity of the forum thread is the main determining factor of choice of structure to use. o.k.w over 7 years ago
Tae 30

I think depends. What is a simple forum thread? A list of topics without more information? Then go ahead and use lists, but if you show topic, author and date (is a simple structure yet), or only topic and author, you get tabular data, so a table is more semantic.

Answered over 7 years ago by Tae