SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Evangelist
    Join Date
    Jul 2004
    Location
    England
    Posts
    588
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    definition lists and multiple dd

    UPDATE: PROBLEM SOLVED.
    Where was my brain when I posted? Why hadn't I simply validated it? That would have shown it's fine - and presumably, if standards compliant, likely to not pose browser display problems.

    -------------------

    Anybody have any DEFINITIVE info on the use of multiple consecutive <dd>s with a single <dt>?

    Example:

    <dl>
    <dt>HTML and CSS.
    <dd>A wonderful way of presenting information to to the world.
    <dd>An absolute pain in the butt that'll keep you awake at night.
    </dl>

    My understanding is that they're invalid with an xhtml1-strict dtd. But, I read conflicting info and thus far haven't found the answer on the w3 site.

  2. #2
    Also available in Large Si's Avatar
    Join Date
    Sep 2002
    Location
    Walsall, UK
    Posts
    1,911
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The most "definitive" documentation you will find on DLs is over at W3C but its not that clear (as per usual) and is only specific to HTML4. We've been using DLs with mutliple DDs at work and it seems to be valid code. I've been using them over at Super Rams as well on my fixtures and results pages although I must confess I haven't checked the validity for a while! :S

    I'm pretty sure that was why DLs were created - with the ability to apply more than one description to an item. I may be wrong though.
    Si
    Are you a Photoshop Jedi Master? Prove it!

    Is funky house your bag? You'll love this!

    Voice
    , eyes, ears, body and hands.


  3. #3
    Also available in Large Si's Avatar
    Join Date
    Sep 2002
    Location
    Walsall, UK
    Posts
    1,911
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It turns out it is valid XHTML1.1 - check it out for yourself.
    Si
    Are you a Photoshop Jedi Master? Prove it!

    Is funky house your bag? You'll love this!

    Voice
    , eyes, ears, body and hands.


  4. #4
    bronze trophy
    Join Date
    Dec 2004
    Location
    Sweden
    Posts
    2,670
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That it passes DTD validation doesn't necessarily mean that it is conforming. But yes, it is.
    Simon Pieters

  5. #5
    SitePoint Evangelist
    Join Date
    Jul 2004
    Location
    England
    Posts
    588
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, guys. Appreciated.
    If only I could remember this stuff. ;-)


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
  •