Treehouse: Grow your CSS skills. Land your dream job.

Forums' HTML – Semantics

  • # July 22, 2013 at 9:35 am

    Hello everyone,

    just took a look at the HTML code of the new forums and was rather surprised to see unordered lists are used (although looking clearly like a real table).

    Does it really make sense to use unsorted lists for this purpose? Why not use simply a table for more or less tabular data like a forum overview?

    IMHO those table paranoia have become kind of rampant.



    # July 22, 2013 at 9:39 am

    It’s probably just a function of bbPress

    There is an argument for forums to be tables (and many still are) but unordered/unsorted lists make just as much sense to me.

    I’m not sure what would be gained by using ordered/sorted lists though

    # July 22, 2013 at 9:59 am

    But the list is ordered by time so ol would be much more precise. If using lists I would go for definition lists in terms of semantics.

    # July 22, 2013 at 10:30 am

    You go with what the software lets you have.

    It’s not ordered by time, I think, it’s **sorted** by time. I think the difference is a fine one.

    >The ol element represents a list of items, where the items have been intentionally ordered, such that changing the order would change the meaning of the list.

    The forum subjects aren’t intentionally ordered because there is no need to do so.

    I’m no sure a definition list is more semantic in this case or even strictly appropriate….but that’s just one mans opinion

    # July 22, 2013 at 10:49 am

    I agree with @Paulie_D.

    # July 23, 2013 at 5:23 pm

    Well, there is a certain point to the idea of using ordered lists in the topics. I agree that topics should probably stay as unordered, but replies/discussions are ordered, aren’t they?

    (as a sidenote, bbPress uses the same kind of nice templating as WordPress overall, so if it was something one cared about, it can be changed).

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.