> Just wondering on this (as I'm dealing with what would be an appropriate
> structure in a refactor for some CMS architecture myself)..
> 
> <ul>
>      <li class="category">Alerts</li>
>      <li class="category">Weather</li>
> </ul>
> <dl>
>      <dt>Posted by:</dt>
>      <dd cite="http://www.paulswebsiteurl";>Paul</dd>
>      <dt>Posted date:</dt>
>      <dd><abbr class="dtstamp" title="1940-12-15">December 15,
> 1940</abbr></dd>
> </dl>
> 
> Would this work?
> 
> Lawrence Meckan


Hi Lawrence,

A couple of things about the code you provided, I think it might be easier
to class the UL instead of the LI's individually. And, to follow the
standards, in HTML 4, DD doesn't have a "cite" attribute (BLOCKQUOTE, Q, and
INS/DEL do, though).  Also, the ABBR seems to be backwards as it's supposed
to be the abbreviation as the content of the element and the expanded text
in the "title" attribute.

Also, this whole structure seems to be about "labels" and "values", I might
finagle the first list as part of the DL.  Or one could argue that it's not
really semantically a DL at all since you're not defining terms, but closer
to assigning labels (however, LABEL is specifically for form elements).

So without knowing more about what you're trying to accomplish, I might
suggest:

<dl>
    <dt>Categories:</dt>
    <dd>
        <ul class="category">
            <li>Alerts</li>
            <li>Weather</li>
        </ul>
    </dd>
    <dt>Posted by:</dt>
    <dd cite="http://www.paulswebsiteurl";>Paul</dd>
    <dt>Posted date:</dt>
    <dd><abbr class="dtstamp" title="December 15,
1940">1940-12-15</abbr></dd>
</dl>

Hope that is helpful.

_Erik


*********************************************************
The CMS discussion list for http://webstandardsgroup.org/
*********************************************************

Reply via email to