[thelist] Categories-Items markup style
Maximillian Schwanekamp
lists at neptunewebworks.com
Tue Oct 12 15:08:02 CDT 2004
Hey All,
I have a page generating a list of subject categories and for each
category a list of items in that category. Would anyone care to comment
on which of these two versions of markup for this would be preferable
from a semantic point of view?
<!-- First choice -->
<h1>Categories List</h1>
<div class="category">
<h2>Category Name</h2>
<ul class="item-list">
<li>Item1</li>
<li>Item2</li><!-- etc... -->
</ul>
</div> <!-- repeat, one div for each category -->
<!-- Second choice -->
<h1>Categories List</h1>
<ul class="categories-list">
<li>Category Name
<ul class="item-list">
<li>Item1</li>
<li>Item2</li><!-- etc... -->
</ul>
</li> <!-- repeat for each category -->
</ul>
Any comments would be most appreciated. TIA!
--
Maximillian Von Schwanekamp
Dynamic Websites and E-Commerce
NeptuneWebworks.com <http://www.neptunewebworks.com/>
voice: 541-302-1438
fax: 208-730-6504
More information about the thelist
mailing list