At 10/12/2009 04:01 PM, nedlud wrote:
I was just looking at a page on the National Library of Australia
web site
(http://www.nla.gov.au/services/issnabout.htmlhttp://www.nla.gov.au/services/issnabout.html)
and noticed the font rendering was strange in my browser (Firefox
3.5.3). When I looked at the markup to try and understand why, I
found that the site seem to be marked up using definition lists for
paragraphs.
I don't want to jump to conclusions, so can anyone suggest a
legitimate reason for doing this?
Each paragraph seems to be a new list (not a new list *item*. A
whole new list).
My guess is that the markup was engineered by someone still learning
the ropes. The page content is in the form of a QA and they validly
selected a definition list as the markup structure, but then they
decided to use h3 for the questions and realized an h3 couldn't be
the immediate child of a dl so they dropped out of the list structure
for each question. I think a better solution would have been to make
the whole FAQ a single dl and drop the h3's.
And the text is in a dd tag with no dt.
I believe that's valid markup. As I read the DTD, a definition list
must contain at least one dt *OR* dd but doesn't require at least one of each:
!ELEMENT DL - - (DT|DD)+ -- definition list --
http://www.w3.org/TR/html4/struct/lists.html#h-10.3
Regards,
Paul
__
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com
***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
***