[thelist] marking up titles for definition lists

Maximillian Schwanekamp lists at neptunewebworks.com
Sun Feb 20 17:50:43 CST 2005


David Siedband wrote:
> What are the best practices for marking up titles of definition lists?  
> <h2>Surfing Terms</h2>
>   <dl>...
> is there a better way to tag this?

Assuming you have an h1 somewhere above that h2 (e.g. <h1>About 
Surfing</h1>), IMHO your markup is ideal.  If you want it to visually 
look like the legend/fieldset combo, you could put a border on <dl> and 
give a negative bottom-margin to the h2 (or a negative top-margin on the 
dl).

-- 
Maximillian Von Schwanekamp
http://www.neptunewebworks.com/



More information about the thelist mailing list