Click to See Complete Forum and Search --> : validation question


michael liska
03-07-2003, 08:40 AM
Hey all!
I've got one error on my html document and its really bugging me. Im coding the page on XHTML (DTD XHTML 1.0 STRICT) I have a table cell containing a <ul>. The problem is that i get an error message that says

"document type does not allow element "ul" here, missing "object" "ins" "del"...... start tag"

can anyone help?

Thanks!
Mike

heres the code

<ul>
<li>tips.....</li>
<li>case....</li>
<ask.........</li>
</ul>

simple, but it doesn't validate.

spufi
03-07-2003, 11:52 AM
<ul>
<li>tips.....</li>
<li>case....</li>
<li>ask........</li>
</ul>

boojum
03-07-2003, 11:55 AM
you have
<ul>
<li>tips.....</li>
<li>case....</li>
<ask.........</li>
</ul>

but i assume thats a typo and it should be
<ul>
<li>tips.....</li>
<li>case....</li>
<li>ask.........</li>
</ul>
like spufi says, which validates for me, its xhtml1.1 compliant even. at any rate i usually see that kind of error when i have to wrap something in a div, try putting the whole page in a div
<body>
<div>
everything
</div>
</body>
</html>
i dont think the problem is the list itself but something its a child of

michael liska
03-07-2003, 11:58 AM
hey Spufi,
sorry, I missed the correct opening tag in the post. I DID actually use the exact code you posted and got the error.
it seems odd that a basic <ul> would not be supported by this DTD so im assuming it has to do with where its placed in the code?

Thanks!
Mike

michael liska
03-07-2003, 12:12 PM
Hey guys and Gals!

Sorry to take up your time! I got it figured out!
Thank you all for the help!!

Mike

spufi
03-07-2003, 12:47 PM
I actually thought it was going to be an error that was elsewhere in your code, and not in what you posted because stuff like that happens to me quite a bit, but when I saw the incorrect opening tag, well, I went that direction. It seemed a little too obvious though. :)