DL over UL

It doesn't matter if you do all the error checking in the world, or if you have the most beautiful graphics, if your site or application design isn't usable, it's not going to do well. Get input and advice on usability and user interface issues here.

Moderator: General Moderators

Post Reply
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

DL over UL

Post 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
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: DL over UL

Post 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.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply