lists

J

Jon Slaughter

I am trying to use two lists and the only behavior that I want just html is
to nest two ul's but use a <dd> tag in the list.

It does work but I'm not sure if <dd> is suppose to work with a ul?

I probably can mess with css to indent the text that <dd> is doing
automaticaly or use a ul with a dl nested inside but it seems much cleaner
using <dd>

the structure is basically
<ul>
<li>
<ul>
<li>
<dd>
/
/
/
/

Thanks,
Jon
 
J

John Hosking

Jon said:
I am trying to use two lists and the only behavior that I want just html is
to nest two ul's but use a <dd> tag in the list.

Of course you neither say why you want that nor provide a URL.
It does work but I'm not sure if <dd> is suppose to work with a ul?
Typical.

http://www.w3.org/TR/html401/struct/lists.html


I probably can mess with css

Likewise typical.
to indent the text that <dd> is doing automaticaly or use
a ul with a dl nested inside but it seems much cleaner using <dd>

<q>"We discourage authors from using lists purely as a means of
indenting text. This is a stylistic issue and is properly handled by
style sheets."</q>

which is what we have to presume you're trying to do, since you haven't
indicated otherwise. What's "cleaner" about it? Are you planning to use
<dl> or <dt>, or are you just going to define things without saying what
you're defining?
 

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

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,162
Latest member
GertrudeMa
Top