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

Re: [VE][79] Error Message Feedback

From: David Dorward <david@dorward.me.uk>
Date: Fri, 23 Jul 2004 09:35:34 +0100
Message-Id: <43F069AA-DC83-11D8-8234-000A957E4F00@dorward.me.uk>
Cc: >list <www-validator@w3.org>
To: "Uli Schlachter" <u.schlachter@web.de>


On 21 Jul 2004, at 10:27, Uli Schlachter wrote:

> Line 20, column 57: end tag for element "P" which is not open
>
> <p><h2>Hier wird der unbeliebteste Lehrer gesucht</h2></p>

The part of the error message you didn't quote:

      The Validator found an end tag for the above element,
      but that element is not currently open. This is often
      caused by a leftover end tag from an element that was
      removed during editing, or by an implicitly closed
      element

The end tag for <p> in HTML is optional, and <p> cannot contain <h2> 
therefore this is evaluated with an implicit closing tag for the 
paragraph:

<p></p><h2>Hier wird der unbeliebteste Lehrer gesucht</h2></p>



--
David Dorward
      <http://dorward.me.uk/>
<http://blog.dorward.me.uk/>
Received on Friday, 23 July 2004 04:36:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:14 GMT