Click to See Complete Forum and Search --> : How is compatible DD code?


toplisek
11-06-2009, 02:18 AM
code like:
<dl>
<dt>Coffee</dt>
<dd>- black hot drink</dd>
<dt>Milk</dt>
<dd>- white cold drink</dd>
</dl>

Is this compatible to browsers to be used or is too modern code?
Is this better than using standard DIV? benefits...

URL is like:
http://www.w3schools.com/TAGS/tag_dd.asp

opifex
11-06-2009, 04:43 AM
This is a definition list
dl = definition list element
dt = definition "term" element
dd = definition "definition" element

All modern browsers have supported this for about 10 years now... nothing new.

rnd me
11-09-2009, 05:42 PM
Is this compatible to browsers to be used or is too modern code?
Is this better than using standard DIV?

yes it's compatible.
yes, it's better than using meaning-less divs to give semantic hierarchy to lists with both titles and content.