These forums are currently read-only due to receiving more spam than actual discussion. Sorry.

It is currently Sat Dec 02, 2017 4:06 pm Advanced search

List Caption

Do you think the HTML spec should do something differently? You can discuss spec feedback here, but you should send it to the WHATWG mailing list or file a bug in the W3C bugzilla for it to be considered.

List Caption

Postby Jerome » Fri May 23, 2008 1:11 am

I'd love to see a way of encoding some sort of LIST description... much like what you get to do with TABLES.

What are LISTS if not 1 dimension data collections... they're not really all that different from TABLES... just needed more often as the right information model.

Something like:
<ol>
<caption>Employees</caption>
<li>Paul Hudson</li>
<li>Cathy Trudeau</li>
<li>Louis Gauthier</li>
</ol>

Which would naturally render as:
Employees:
•Paul Hudson
•Cathy Trudeau
•Louis Gauthier


Usefull for things like
<ul>
<caption>Tags</caption>
<li><a href="/tag/music" rel="tag">music</a></li>
<li><a href="/tag/beatles" rel="tag">Beatles</a></li>
<li><a href="/tag/john+lennon" rel="tag">John Lennon</a></li>
</ul>

It would also make a nice logo holder for a header+menu where the LI are menu items... or a nice side submenu header...

<ul class="submenu">
<caption>Affiliates</caption>
<li><a href="/register.html">Register as an affiliate</a></li>
<li><a href="/mediakit.html">Media Kit and Banners</a></li>
<li><a href="/terms.html" rel="tag">Affiliate program terms</a></li>
</ul>
Jerome
<h6>
 
Posts: 2
Joined: Thu May 22, 2008 8:37 pm

Postby Jerome » Fri May 23, 2008 3:49 pm

could also be done as a <lh> element... such as
<ul>
<lh>Weekend Todo List</lh>
<li>Change lightbulb</li>
<li>Plant Flowers</li>
</ul>

Either way it would ass some semantic to lists that classes don't...
A class would tell you a list is a submenu but a caption or an "li" is a much better way of attaching a readable label to the list.... like "Artist Portfolio".
Jerome
<h6>
 
Posts: 2
Joined: Thu May 22, 2008 8:37 pm

Postby haka » Wed May 28, 2008 7:16 pm

I think the best solution is the section element. Using elements in a new case makes it more difficult than it must be. And with the section element, there is no problem with multidimensional lists.

<section>
<h1>My List</h1>
<ul>
<li>List entries ...</li>
</ul>
</section>
haka
<h5>
 
Posts: 15
Joined: Mon Nov 19, 2007 10:39 pm

Postby zcorpan » Tue Jun 10, 2008 10:50 am

zcorpan
<article>
 
Posts: 807
Joined: Tue Feb 06, 2007 8:29 pm
Location: Sweden


Return to Feedback on the Specs

Who is online

Users browsing this forum: No registered users and 1 guest