RE: HTML: nested lists OK?

Subject: RE: HTML: nested lists OK?
From: "Char James-Tanny" <CharJT -at- helpstuff -dot- com>
To: "TECHWR-L" <techwr-l -at- lists -dot- raycomm -dot- com>
Date: Fri, 27 Sep 2002 09:55:18 -0400


Hi, John :-)

The spec does allow for nested lists, but they have to be formed correctly.

For example, this validates:

<ul>
<li>item</li>
<li><a href="members.html">Members</a>
<ul>
<li><a href="amembers.html">Alphabetical</a></li>
<li><a href="cmembers.html">Category</a></li></ul>
</li></ul>

while this doesn't:

<ul>
<li>item</li>
<li><a href="members.html">Members</a></li>
<ul>
<li><a href="amembers.html">Alphabetical</a></li>
<li><a href="cmembers.html">Category</a></li></ul>
</ul>

Most browsers figure out what you want to do, no matter how it's coded.

HTH!

Char
~ ~ ~~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
Char James-Tanny ~ mailto:CharJT -at- helpstuff -dot- com
JTF Associates, Inc. ~ http://www.helpstuff.com

AuthorIT Consulting, Development, and Training
RoboHelp Consulting, Development, and Training
Research Group Leader, MACCAWS ~ http://www.maccaws.org
Moderator, MSHelp2
Web site design ~ http://design.helpstuff.com


> Apparently the HTML spec does not allow for nested lists (ie UL
> tage inside another UL tag). However all the browsers I've tested
> display nested lists fine. Does anyone know any reason not to
> nest UL and OL tags in HTML?
>
> John Cornellier


^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Enhance, optimize and automate your FrameMaker-to-PDF workflow with TimeSavers:
Define all PDF features in your source FrameMaker files ONCE, distill MANY.
Bookmark Controller, Link Controller, UnBloat & more : http://www.microtype.com

Experience RoboHelp X3! This new RoboHelp release combines single sourcing,
print-quality documentation, conditional text and much more, into the most
monumental release of RoboHelp ever! http://www.ehelp.com/techwr-l

---
You are currently subscribed to techwr-l as:
archive -at- raycomm -dot- com
To unsubscribe send a blank email to leave-techwr-l-obscured -at- lists -dot- raycomm -dot- com
Send administrative questions to ejray -at- raycomm -dot- com -dot- Visit
http://www.raycomm.com/techwhirl/ for more resources and info.



References:
HTML: nested lists OK?: From: John Cornellier

Previous by Author: Should a PDF include "Printed in Country" phrase ?
Next by Author: RE: HTML: nested lists OK?
Previous by Thread: HTML: nested lists OK?
Next by Thread: HTML: call an anchor in a frameset


What this post helpful? Share it with friends and colleagues:


Sponsored Ads