W3C home > Mailing lists > Public > www-html-editor@w3.org > July to September 1997

Nested Listing Example

From: Keith Swenson <kswenson@netscape.com>
Date: Wed, 16 Jul 1997 11:38:29 -0700
Message-ID: <33CD1525.20828CB9@netscape.com>
To: www-html-editor@w3.org, kswenson@netscape.com
This is a comment on the HTML 4.0 spec.

The section on lists (OL / UL) has unclear or misleading examples.

<UL>
       <LI> ... Level one, number one...
       <OL>
          <LI> ... Level two, number one...
          <LI> ... Level two, number two...
          <OL start="10">
             <LI> ... Level three, number one...
          </OL>
          <LI> ... Level two, number three...
       </OL>
       <LI> ... Level one, number two...
  </UL>

The DTD clearly states that UL can only have LI elements, but in the
example it appears that the outermost UL, has OL elements in it, and
that the OL have OL tags inside them.  If I read the spec right, then
the OL tags must be *inside* the LI tags.  This is not clear because the
</LI> tags have been omitted from the picture.  I understand that while
the end tags are optional, tools that generate HTML are supposed to
include them.

Please confirm that the following example is correct:

<UL>
   <LI> ... Level one, number one...
      <OL>
         <LI> ... Level two, number one... </LI>
         <LI> ... Level two, number two...
            <OL start="10">
               <LI> ... Level three, number one... </LI>
            </OL> </LI>
         <LI> ... Level two, number three... </LI>
      </OL> </LI>
   <LI> ... Level one, number two... </LI>
</UL>

-Keith Swenson


Received on Wednesday, 16 July 1997 14:37:59 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:16:42 GMT