can I use definition lists just like unordered/ordered lists?
I mean insert DIVs any anything I want inside DT or DD?
<dl>
<dt>
...
</dt>
<dd>
...
</dd>
</dl>
Do any browsers, or search engines complain?
can I use definition lists just like unordered/ordered lists?
I mean insert DIVs any anything I want inside DT or DD?
<dl>
<dt>
...
</dt>
<dd>
...
</dd>
</dl>
Do any browsers, or search engines complain?
Inside a
DL
you can only putDT
andDD
tags. ADT
tag is an inline tag, so you should not put block elements in it. ADD
tag can contain basically anything you want, it's a flow content tag.Updated answer based on comments:
This was originally answered in 2011 for HTML 4, but the answer is different for HTML5:
Original answer:
DT
elements should contain inline content.DD
elements should contain block-level content.This question is also an interesting read: Why use definition lists (DL,DD,DT) tags for HTML forms instead of tables?