XHTML and definition lists

J

Jay

In XHTML when using a definition list, should the <dd> tags be nested within
the <dt> tags?

IE:

<dl>
<dt>Title
<dd>Definition</dd>
<dd>Definition></dd>
</dt>
</dl>

OR

<dl>
<dt>Title</dt>
<dd>Definition</dd>
<dd>Definition></dd>
</dl>

Thanks,

- J
 
J

Jay

I did what I should've done in the first place...try it against the
validator. The <dd> tags do not validate when nested within the <dt> tags.

- J
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,053
Latest member
BrodieSola

Latest Threads

Top