W3C home > Mailing lists > Public > www-validator@w3.org > May 2015

Re: HTML5 Validation Error Consult

From: Michael[tm] Smith <mike@w3.org>
Date: Wed, 27 May 2015 20:25:39 +0900
To: Kevin Fu <kevin.fu.scorpion@gmail.com>
Cc: www-validator@w3.org
Message-ID: <20150527112539.GJ7733@sideshowbarker.net>
Hi Kevin,

Kevin Fu <kevin.fu.scorpion@gmail.com>, 2015-05-13 11:59 +0800:
> Archived-At: <http://www.w3.org/mid/630BEDDA-ABAC-4063-9FB3-97837DA6F29D@gmail.com>
> Hi,
> I tried to validate my web site: http://www.theplace1887.com
> It’s a simple HTML page. But the result says I have an unexpected </p> end tag and I’m pretty sure I don’t. (Screen Shot 2015-05-13 at 11.57.59 AM.png)
> The begin <p> tag is on line 221.
> Is there anything I missing? Thank you for your time.

You can’t put div element inside of a p element. So when the HTML parser
reaches the div start tag on line 224, it closes rhe p element you opened
on line 221. Essentially it automatically generates a closing p tag. And
then later it finds another closing p tag on line 292 but it has already
closed the p element. Hence the error message you’re seeing.


Michael[tm] Smith https://people.w3.org/mike

Received on Wednesday, 27 May 2015 11:26:05 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:18:13 UTC