SitePoint Sponsor

User Tag List

Results 1 to 9 of 9
  1. #1
    SitePoint Zealot
    Join Date
    Jul 2006
    Posts
    116
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    threaded discussion

    Should posts in a threaded discussion be wrapped in a list or a div? At first, I thought it should be a list, but, now that I think about it, it seems like the threaded-ness takes away from the list and it should actually be a div.

    What do you think?

  2. #2
    SitePoint Evangelist bals28mjk's Avatar
    Join Date
    Aug 2007
    Posts
    405
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sitepoint has threads in <div>s. I doubt your users or search engines will care.

  3. #3
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,782
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    It doesn't matter. Semantically divs are divisions on the page, as such a post.
    Always looking for web design/development work.
    http://www.CodeFundamentals.com

  4. #4
    SitePoint Zealot
    Join Date
    Jul 2006
    Posts
    116
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I know a post is a division, but a list item is certain type of division. I feel like embedded lists is a more semantic way to describe threaded discussions than simple divisions. I feel like if the article tag were available that the articles should still be wrapped in lists.

    What do you think?

  5. #5
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2006
    Location
    Augusta, Georgia, United States
    Posts
    4,194
    Mentioned
    17 Post(s)
    Tagged
    5 Thread(s)
    ol – Posts are conceptually a list of related ordered info.

  6. #6
    SitePoint Zealot
    Join Date
    Jul 2006
    Posts
    116
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ol – Posts are conceptually a list of related ordered info.
    I have to agree with this. However, I have to bring up the question: why does virtually every forum/blog software mark up comments/replies as divs?

  7. #7
    SitePoint Wizard Stomme poes's Avatar
    Join Date
    Aug 2007
    Location
    Netherlands
    Posts
    10,287
    Mentioned
    51 Post(s)
    Tagged
    2 Thread(s)
    Maybe it was easier to do endless nested divs hell than endless nested lists + removing bullets hell? Or more likely, nobody thought of the semantics like that and didn't consider using lists?

    Mostly it would add more markup, since you'd still want divs (so you could have any children inside), so you'd be taking the divs and wrapping li's around them and then ol's.

  8. #8
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Stomme poes View Post
    Mostly it would add more markup, since you'd still want divs (so you could have any children inside), so you'd be taking the divs and wrapping li's around them and then ol's.
    Why? A li can have the same content as a div, so <li><div>...</div></li> would just add unnecessary bloat compared to <li>...</li>.
    Birnam wood is come to Dunsinane

  9. #9
    SitePoint Wizard Stomme poes's Avatar
    Join Date
    Aug 2007
    Location
    Netherlands
    Posts
    10,287
    Mentioned
    51 Post(s)
    Tagged
    2 Thread(s)
    hm, you're right, that's true. Brain fart.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •