Re: Unordered List

by bkrWeb Services <bkrweb(at)bkrweb.com>

 Date:  Sun, 20 May 2001 20:38:07 -0500
 To:  "Lauren Hanka" <bluejay(at)starband.net>
 Cc:  <hwg-basics(at)hwg.org>
 In-Reply-To:  vaio
  todo: View Thread, Original
If you want to use an unordered list with CSS, you need to close the <li> 
tags.  Not knowing what DTD you're using, that may or may not be a 
requirement of the version of html you're using also.  It's certainly worth 
a try.  I just automatically close them now.

Kathie Riechmann

At 05:42 PM 5/20/01 -0700, Lauren Hanka wrote:
>Hi All--
>
>I have created an unordered list within a body of text, which is inside a
>nested table like this:
>
><ul>
>  <li>blah blah
>  <li>blah blah
>  <li>blah blah
>  <li>blah blah
>   <ul>
>    <li>blah blah
>    <li>blah blah
>    <li>blah blah
>   </ul>
></ul>
>
>It will not validate, and I get the following message:
>
>"Error: element "UL" not allowed here; possible cause is an inline element
>containing a block-level element (explanation...)"
>
>Then, when I click on the "explanation," I get:
>
>"'document type does not allow element "FOO" here' Straightforward, but not
>terribly informative. There are a lot of different errors that will generate
>this error message: Using an unknown tag. In this case, the next error will
>be "element `FOO' undefined". Using a tag in the wrong place."
>
>Although this is the method W3C instructs to create an unordered list, and
>I've researched, and fudged, and fidgeted with this, I still cannot get it
>to validate. It seems like it should be so simple. Where am I going wrong?
>
>Thanks,
>Lauren

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