[thelist] marking up titles for definition lists

David Siedband technique at oceanicsky.com
Sun Feb 20 17:28:14 CST 2005

What are the best practices for marking up titles of definition lists?  
I have a page with several d-lists and I want to associate them with 
their titles.  Something like the way a <legend> definition wraps the 
content of the <fieldset> would be excellent.

This is what I'm using at the moment:

<h2>Surfing Terms</h2>
     <dt>Dawn Patrol</dt>
       <dd>An early morning surf session.</dd>
     <dt>Evening Glass</dt>
       <dd>A late afternoon surf session.</dd>

Validation fails if I nest the <h2> inside the <dl>

is there a better way to tag this?
David Siedband

More information about the thelist mailing list