Do you intend to have more than one data column/row (plus headings?) if
so, then it is clearly a table, but if only one, then a list of some
kind is more appropriate. I would suggest that in this case there is
nothing wrong with a table whichever direction you choose to lay it out.
Another 'trigger' question would be whether any one cell will need to
contain more than one paragraph of text, if so, then you are getting
into layout territory, and the associated accessibility problems of
tables will start to creep in.
Mike
________________________________
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of morten fjellman
Sent: Wednesday, February 07, 2007 3:59 PM
To: [email protected]
Subject: Re: [WSG] How to mark up my dvd list?
Thank you for the suggestion, I really appreciate it :)
I'm somewhat torn between the two (dl vs. table). I can see the
logic behind the dl, but I guess it's tabular data as well as a list.
Can someone tip the balance here?
Kind regards
Morten
I'd definitely stick to the table. A table is still a
list of rows and
columns, and would make the universal nature of the
attributes (name,
entry date, tagline) clearer and easier to input/manage.
If you decide you would rather have it displayed as you
just have, you
could always use CSS to make it appear that way (you
could even allow
users to switch between views).
My suggestion in code:
<table id="DVDlisting">
<tbody>
<tr class="columnHeadings">
<td>Name</td>
<td>Entry date</td>
<td>Tagline</td>
<td>Genre</td>
<td>Director</td>
<td>Starring</td>
<td>Language</td>
<td>Runtime</td>
<td>Summary</td>
</tr>
<tr class="filmEntry">
<td class="Name">Cool Hand Luke</td>
<td class="Entry date">2007/2/6</td>
<td class="Tagline">"What we've got here is failure
to communicate"</td>
<td class="Genre">Drama</td>
<td class="Director">Stuart Rosenberg</td>
<td class="Starring">Paul Newman, George Kennedy,
J.D. Cannon, Lou
Antonio, Robert Drivas, Strother Martin, Jo Van Fleet,
Clifton James,
Morgan Woodward, Luke Askew, Marc Cavell, Richard
Davalos, Robert
Donner, Warren Finnerty, , Dennis Hopper</td>
<td class="Language">English</td>
<td class="Runtime">126min</td>
<td class="Summary">Luke is sent to a prison camp,
where he gets a
reputation as a hard man. The head of the gang hates
him, and tries to
break him by beating him up. It doesn't work, and he
gains respect. His
mother dies, and he escapes, but is caught, escapes
again, and is caught
again. Will the camp bosses ever break him ?</td>
</tr>
</tbody>
</table>
CSS for list presentation:
#DVDlisting td
{display:block}
tr.columnHeadings
{display:none}
tr.filmEntry
{margin:2em 0 0 0}
tr.filmEntry td:before
{font-weight:bold;
content:attr(class)}
td.Name:before
{content:""}
td.Name
{font-weight:bold;
margin:0 0 1em 0}
That would make it appear pretty much as it does in your
email, but you
can retain the ease and functionality of cross-reference
by reverting to
standard table-cell display.
I think a DL is a lot more ambiguous and messy for
something that is
clearly tabular data. Remember, it's only layout
purposes that make
tables unpopular!
*******************************************************************
List Guidelines:
http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************