Nested lists in Strict validation

by "Hilma" <Hilma(at)hilma.freeserve.co.uk>

 Date:  Thu, 23 May 2002 19:59:52 +0100
 To:  <hwg-basics(at)hwg.org>
 References:  nrc
  todo: View Thread, Original
Hope someone can help -

i have some nested lists, which work fine -

but W3C strict valdiation is spitting them out :-(

Below, Rhodie, Laurel and Sycamore are nested below "Control of invasive
exotic species."

61: <div class="myList">

62: <ul>

63: <li>Maintenance of the footpaths</li>

64: <li>Control of invasive introduced exotic species</li>

65: <ul>

66: <li>Rhododendron</li>

67: <li>Laurel</li>

68: <li>Sycamore</li>

69: </ul>

70: <li>Planting of exotic species</li>

71: <li>Island-maintenance to prevent erosion</li>

72: <li>loads of other stuff</li>

73: </ul>

74: </div>

I get

Line 65, column 3:

<ul>

^

Error: element "ul" not allowed here; assuming missing "li" start-tag

Line 70, column 3:

<li>Planting of exotic species</li>

^

Error: element "li" not allowed here; possible cause is an inline element
containing a block-level element

Line 71, column 3:

<li>Island-maintenance to prevent erosion</li>

^

Error: element "li" not allowed here; possible cause is an inline element
containing a block-level element

Line 72, column 3:

<li>loads of other stuff</li>

^

Error: element "li" not allowed here; possible cause is an inline element
containing a block-level element

Line 73, column 4:

</ul>

^

Error: end tag for "li" omitted; end tags are required in XML for non-empty
elements; empty elements require an end tag or the start tag must end with
"/>"

Line 65, column 0:

<ul>



Any ideas please?

thanks -

Hilma

--x---

Time is like bathwater - it makes your skin go all wrinkly

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA