SitePoint Sponsor |
|
User Tag List
Results 1 to 5 of 5
Thread: definition lists and multiple dd
-
Nov 3, 2005, 03:23 #1
- 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.
-
Nov 3, 2005, 03:50 #2
- 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.
-
Nov 3, 2005, 03:59 #3
- 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.
-
Nov 3, 2005, 10:55 #4
- 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
-
Nov 3, 2005, 11:43 #5
- 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