Definition list for president!
Sometimes I am amazed how such a simple element can do so much good. The dl element and its child’s dt and dd are maybe the most semantic solutions in some cases. Take for instance a form, let the dt contain the text (like ‘name’ or ‘email’), including the label element. The dd can contain the input element, simple huh?
But that isn’t the only good case I use the dl’s for… lists of comments are also very well marked up with a definition list. Browsers support the dl element quite good, since it exists for many HTML versions.
Last week I was asked by Tom if I use definition lists often, luckily I could say yes! So, how often do you use them?
Posted on Sunday, July 1st, 2007 in HTML – 6 comments
