Page 1 of 1

DL over UL

Posted: Fri Oct 10, 2008 6:51 pm
by alex.barylski
Which is more semantically correct under which circumstances?

In this case, DL and DT are being used in a horiztonal menu -- which I have always used a UL/LI combination.

Personally I think using DL and DT is uglier and requires more code.

Code: Select all

<dl>  <dt>Home</dt></dl><dl>  <dt>About</dt></dl><dl>  <dt>Company</dt></dl>
Over:

Code: Select all

<ul>  <li>Home</li>  <li>About</li>  <li>Company</li></ul>
I prefer the latter but I wonder if DT is more semantically correct and the orignal client developer knew more about a semantic web than I do -- admittedly I have never used that tag before.

So what says you, sure the latter is nicer to look at, the former might be more semantically accurate for a H menu...have any resources to back your claims which I might show my client if asked???

Cheers,
Alex

Re: DL over UL

Posted: Sat Oct 11, 2008 1:56 am
by pickle
Well, it's a list of items, not a list of definitions, so the UL makes more sense. It is neater code as well.