- From: Mike Protts <mike@tor.eclipse.co.uk>
- Date: Thu, 27 May 2004 20:44:52 +0100
- To: www-validator@w3.org
The html below has failed to validate, suggesting a mis-matches set of <p>
and </p> tags. I cut this down to make sure I wasn't missing something,
but I can not see the stated error.
I assume that a <H2> </H2> section is not allowed within a paragraph -
maybe this would be a useful in the message.
Thanks
Mike
Line 11, column 3: end tag for element "P" which is not open
</p>
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 (if you have an error related to an element beeing used where it
is not allowed, this is almost certainly the case). In the latter case
this error will disappear as soon as you fix the original problem.
1: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2: <html>
3: <head>
4: <META HTTP-EQUIV="Content-Type" CONTENT="text/html;
charset=ISO-8859-1">
5:
6: <title> test </title>
7: </head>
8: <body>
9: <P>
10: <h2>Will this validate?</h2>
11: </p>
12: </body>
13: </html>
Received on Thursday, 27 May 2004 16:37:08 UTC