Re: Bug: Tidy (26 July 1999) warns about nested OL and UL

From the HTML4 dtd

   <!ELEMENT OL - - (LI)+                 -- ordered list -->
   <!ELEMENT UL - - (LI)+                 -- unordered list -->

Thus, the only element that can occur inside an <ol></ol> or <ul></ul>
pair is an <li>. Fortunately, an <ol></ol> or <ul></ul> can appear
inside an <li>. So all you need to do to nest lists you need to
rearrange your end tags a bit:

<ol>
  <li>The basics <!-- Delete it from here -->
    <ol>
      <li>Intro</li>
      <li>&quot;Hello, world&quot;</li>
    </ol>
  </li> <!-- and move it here -->
  <li>Step two <!-- Delete it from here -->
    <ul>
      <li>What's wrong with &quot;Hello&quot;?</li>
      <li>Register use</li>
    </ul>
  </li> <!-- and move it here -->
  <li>Step three</li>
</ol>

Kent

-- 
Kent E. Holsinger                Kent@Darwin.EEB.UConn.Edu
                                 http://darwin.eeb.uconn.edu
-- Department of Ecology & Evolutionary Biology          
-- University of Connecticut, U-43                                       
-- Storrs, CT   06269-3043                                               

Received on Monday, 16 August 1999 17:20:31 UTC