Hi Chris,
Personally I'd use a header of an appropriate level within the document. So:
h1Document Title/h2
pBlah blah blah blah/p
h2List Title/h2
ul
liIt's big/li
etc...
/ul
Cheers,
Iain
Chris W. Parker wrote:
Hello,
What is the recommended way to mark up a list that has
What is the recommended way to mark up a list that has a title?
With better IE support, I might do:
ul title=Features
liIt's big/li
liIt's heavy/li
liIt's wood/li
/ul
...and then style it something like:
ul[title]:before {
display:block;
content:attr(title);
}
But, as
Chris W. Parker wrote:
pFeatures:/p
ul
liIt's big/li
liIt's heavy/li
liIt's wood/li
/ul
At the risk of sparking another cry of outrage and subsequent
discussions, you could use the (badly defined) definition list construct
instead:
dl
dtFeatures:/dt
ddIt's big/dd
ddIt's heavy/dd
*Huge* fan as I am of definition lists, I fear this may be taking it
just that little bit too far. ;) Chris is, after all, marking up a
list title. A definition title and its subsequent definition suggests a
much tighter and narrow scope than a general title gives.
Whoops, here comes the
Iain mailto:[EMAIL PROTECTED]
on Friday, June 17, 2005 1:28 PM said:
*Huge* fan as I am of definition lists, I fear this may be taking it
just that little bit too far. ;) Chris is, after all, marking up a
list title. A definition title and its subsequent definition
suggests a much