View Full Version : Question About <li>

07-12-2008, 01:09 AM
i'm quite fresh on web programming., while surfing ,i regconize that coders prefer making Menu Bar by using <li> tab than <table> one.It's the habit or sth else??. both have same properties when we adjust them by CSS. Somebody tell me about this problem. <excuse for my bad English> Thanks

07-12-2008, 01:11 AM

<li>'s are an easier way to manage and style a navigation system. Its much easier than tables with more control.

07-12-2008, 01:32 AM
Plus, it’s more semantic (http://boagworld.com/technology/semantic_code_what_why_how/). A navigation isn’t tabular data. Rather, it’s a list of links.

07-12-2008, 07:10 PM
<caption>Site Navigation</caption>
<td><a href="http://example.com/">http://example.com/</a></td>
<td><a href="/about/">http://example.com/about/</a></td>
<td><a href="/news/">http://example.com/news/</a></td>
<td><a href="/contact/">/http://example.com/contact/</a></td>

07-12-2008, 07:12 PM
Wouldn't a definition list be more suited if you formatted it like that, though?

07-12-2008, 07:24 PM
It wouldn't bother me at all.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum