DL over UL
Posted: Fri Oct 10, 2008 6:51 pm
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.
Over:
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
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>Code: Select all
<ul> <li>Home</li> <li>About</li> <li>Company</li></ul>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