What is the recommended way to mark up a list that has a title?
With better IE support, I might do:
<ul title="Features">
<li>It's big</li>
<li>It's heavy</li>
<li>It's wood</li>
</ul>
...and then style it something like:
ul[title]:before {
display:block;
content:attr(title);
}
But, as it is, I suggest:
<div>
<h1>Features:</h1>
<ul>
<li>It's big</li>
<li>It's heavy</li>
<li>It's wood</li>
</ul>
</div>
Replace h2 with 2,3,4,5,6 as appropriate. The only drawback to this, I
think, is that you are saying the heading is for the section, and the
section contains a list -- not that the heading is for the list.
--
Ben Curtis : webwright
bivia : a personal web studio
http://www.bivia.com
v: (818) 507-6613
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************