Re: HTML: nested lists OK?

Subject: Re: HTML: nested lists OK?
From: "Dick Margulis " <margulis -at- mail -dot- fiam -dot- net>
To: "TECHWR-L" <techwr-l -at- lists -dot- raycomm -dot- com>
Date: Fri, 27 Sep 2002 09:37:58 -0400



>--- John Cornellier <t_w -at- cornellier -dot- com> wrote:
>>
>>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?
>>

Jeff Hanvey <jeff -at- jewahe -dot- net> replied:

>Nested lists are a normal part of information layout, and the HTML specs should allow them. My HTML 4 book has a whole section (okay 2 pages) devoted to nesting lists.
>
>I think this is a case where the spec is either inaccurate or idiotic, and you can safely ignore it.

Jeff and John,

I haven't seen the full text of John's original post yet (just one of those Lyris things); so this is just a shot in the dark.

The confusion may be this: There are things you are NOT allowed to do with regard to nested lists. In general in HTML (and lots of other places), you can't cross tags. That is, the following is valid:

<X>...<Y>...</Y>...</X>

But the following is NOT valid:

<X>...<Y>...</X>...</Y>

So perhaps John inadvertently did something like that with list tags and got slapped on the wrist with an error message. As I said, I'm just speculating here based on the quoted post. If this is not the issue, never mind ;-)

Dick


^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FrameMaker-to-PDF TimeSavers Assistants let you enhance & automate navigation
in PDF doc sets (chapter tabs, next/prev chapter/pg, bookmarks, popup menus);
create interactive PDF forms, rollover popups; presentations: 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.



Previous by Author: Re: PDF print failure
Next by Author: Re: Should a PDF include "Printed in Country" phrase ?
Previous by Thread: Re: HTML: nested lists OK?
Next by Thread: re: HTML: nested lists OK?


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


Sponsored Ads