W3C home > Mailing lists > Public > www-validator@w3.org > October 2004

Re: [VE][66] Error Message Feedback

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Wed, 13 Oct 2004 22:04:42 +0300 (EEST)
To: marcus hennig <marcus.hennig@ziplip.com>
Cc: www-validator@w3.org
Message-ID: <Pine.GSO.4.58.0410132202160.15170@korppi.cs.tut.fi>

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

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:43 UTC