Re: [VE][66] Error Message Feedback

On Wed, 13 Oct 2004, marcus hennig wrote:

> <ul>
> <li>test</li>
> <p>
> test
> </p>
> </ul>
- -
> Line 22, column 2: document type does not allow element "P" here; assuming missing "LI" start-tag

This is because a <ul> element may contain <li> elements and nothing else.
It's a list, and the only thing it can contain is list items. You need
put move the <p> element out of the <ul> element _or_ put it inside some
<li> element there.

> But my book teach me thats right! Why doesnt work?

Bad book! Get your money back. ;-) (Or maybe you just misunderstood what
it said.)

-- 
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/

Received on Wednesday, 13 October 2004 19:05:14 UTC