HTML5 Validation Error Consult

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

HTML5 Validation Error Consult

Kevin Fu
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.


Regards,
Kevin



Screen Shot 2015-05-13 at 11.57.59 AM.png (27K) Download Attachment
index.html (27K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: HTML5 Validation Error Consult

Michael[tm] Smith
Hi Kevin,

Kevin Fu <[hidden email]>, 2015-05-13 11:59 +0800:

> Archived-At: <http://www.w3.org/mid/630BEDDA-ABAC-4063-9FB3-97837DA6F29D@...>
>
> 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.

  ーMike

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

signature.asc (836 bytes) Download Attachment