DL element. And so should you! The basic rule is to not let the name of the element (which obviously stands for Defintion List) fool you. Take a look at my side menu for example. The black headers are inside the DT element while the rest is inside one ore multiple DD elements. And the joy is, it's perfect use of the DL element!
The HTML 4.01 specification is kind of vague about the DL element, though. But what it clear says is this:
That's interesting, don't you think? It basically means that theDefinition lists, created using the DL element, generally consist of a series of term/definition pairs (although definition lists may have other applications).
DL element gives you a lot of freedom. The example below the above quotation uses a defenition list to list the features of a product and describe them which is exactly what Mozilla also uses on their Firefox project page. And when you're scrolling down further down on the HTML 4.01 List specification page you'll see another example:
The conclusion is that theAnother application of DL, for example, is for marking up dialogues, with each DT naming a speaker, and each DD containing his or her words.
DL can be used for a wide range of things which makes it perfect for, for instance, a side menu like mines, or on the new Freewebs website</spam>. Another great thing about using the side menu as a DL is that it's easy to float without using a DIV element which also supports my anti-DIV philosophy.
So don't underestimate the power of the DL element!
Copyright © 2005 - 2007 Jeroen van der Meer. All rights reserved.