[thelist] Which is more Semantically Correct(tm) ??

Sarah Sweeney mr.sanders at designshift.com
Thu Jun 3 07:37:00 CDT 2004


> semantic markup is much a matter of personal (hopefully informed ;)
> decision, but i'd say that
> 
> <h2>Item A</h2>
>  <ul>
> <li>
>  <dl>
>    <dt>Attrib1</dt>
>    <dd>Value</dd>
>  </dl>
> </li>
> <li>
>  <dl>
>    <dt>Attrib2</dt>
>    <dd>Value</dd>
>  </dl>
>  </li>
> </ul>

Maybe I'm misunderstanding the point of the <dl> tag - it's supposed to 
be a list, right? So wouldn't this be more appropriate?
<dl>
   <dt>Item A</dt>
   <dd>
     <dl>
       <dt>Attrib 1</dt>
       <dd>Value</dd>

       <dt>Attrib 2</dt>
       <dd>Value</dd>

       <dt>Attrib 3</dt>
       <dd>Value</dd>
     </dl>
   </dd>

   <dt>Item B</dt>
   <dd>
     <dl>
       <dt>Attrib 1</dt>
       <dd>Value</dd>

       <dt>Attrib 2</dt>
       <dd>Value</dd>

       <dt>Attrib 3</dt>
       <dd>Value</dd>
     </dl>
   </dd>
</dl>

-- 
Sarah Sweeney
Web Developer & Programmer
Portfolio :: http://sarah.designshift.com
Blog, etc :: http://hardedge.ca


More information about the thelist mailing list