SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict
    Join Date
    Feb 2003
    Location
    eez
    Posts
    331
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    2 questions on the dl element

    Hi!

    Is this valid:

    <dl>
    <dt></dt>
    <dt></dt>
    <dd></dd>
    <dd></dd>
    </dl>

    (2 dts and 2 dds)


    Second question: Is dl always the structure to use when no other element is adapted?

    Thanks!

  2. #2
    SitePoint Evangelist Ed Seedhouse's Avatar
    Join Date
    Aug 2006
    Location
    Victoria, B.C. Canada
    Posts
    592
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by aqw
    Hi!

    Is this valid:
    <dl>
    <dt></dt>
    <dt></dt>
    <dd></dd>
    <dd></dd>
    </dl>
    I don't know. run it through the W3C validator and find out.

    Second question: Is dl always the structure to use when no other element is adapted?
    No. Your elements should reflect the structure of your content.
    Ed Seedhouse

  3. #3
    bronze trophy
    Join Date
    Dec 2004
    Location
    Sweden
    Posts
    2,670
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by aqw
    Is this valid:

    <dl>
    <dt></dt>
    <dt></dt>
    <dd></dd>
    <dd></dd>
    </dl>

    (2 dts and 2 dds)
    Yes. There is one name/value group with two "names" linked to two "values".
    Quote Originally Posted by aqw
    Second question: Is dl always the structure to use when no other element is adapted?
    I don't understand this question. <dl> should be used when you have a list with name/value groups, otherwise not.
    Simon Pieters


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
  •