Proper use of DL/DT/DD elements

Discussion in 'HTML & Website Design' started by joebert, Nov 22, 2007.

  1. #1
    When should I be using DL/DT/DD elements ?

    They appear to be designed for dictionary type usage.
    I've seen them used in situations I would hardly call dictionary usage though.
     
    joebert, Nov 22, 2007 IP
  2. soulscratch

    soulscratch Well-Known Member

    Messages:
    964
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    155
    #2
    You can use them for FAQs.. <dt>'s around the questions and <dd>'s around the answers. And one may argue it's right to use <dt>'s around form labels and <dd>'s around inputs/textarea/selects.
     
    soulscratch, Nov 22, 2007 IP
  3. Kendothpro

    Kendothpro Well-Known Member

    Messages:
    574
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    120
    #3
    As a general rule, it's good to use them when you have a list of items, where every single item needs a title
    An example might be a list of different species of the banana plant, with the scientific name of the plant as the DT and the description as the DD, all surrounded by a single DL
     
    Kendothpro, Nov 22, 2007 IP
  4. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I wouldn't use them for marking up form controls, period. Other than that, you're right. It's a definition list, and is thus best used in FAQs, glossaries and the like.
     
    Dan Schulz, Nov 22, 2007 IP