Semantically correct XHTML markup
Posted
by Dori
on Stack Overflow
See other posts from Stack Overflow
or by Dori
Published on 2010-06-14T16:31:05Z
Indexed on
2010/06/14
16:42 UTC
Read the original article
Hit count: 266
Hello all. Just trying to get the hang of using the semantically correct XHTML markup.
Just writing the code for a small navigation item. Where each button has effectivly a title and a descrption. I thought a definition list would therefore be great so i wrote the following
<dl>
<dt>Import images</dt>
<dd>Read in new image names to database</dd>
<dt>Exhibition Management</dt>
<dd>Create / Delete an exhibition </dd>
<dt>Image Management</dt>
<dd>Edit name, medium and exhibition data </dd>
</dl>
But...I want the above to be 3 buttons, each button containing the dt and dd text. How can i do this with the correct code? Normally i would make each button a div and use that for the visual button behaviour (onHover and current page selection stuff).
Any advice please
Thanks
© Stack Overflow or respective owner