Bad validator error

The following page :

https://eyeasme.com/Joe/test.html

with this source code:
<!DOCTYPE html>
<html>
  <head lang="en">
    <meta charset="UTF-8" />
    <title> Color test </title>
   <body>
     <p>
       <ul>
         <li> red </li>
       </ul>
     </p>
   </body>
</html>


gives this error when validated:
Line 11, Column 9: No p element in scope but a p end tag seen.

This error message goes away if a "p" tag is inserted immediately
before line 11 (the closing "p" tag).  

See:
https://eyeasme.com/Joe/test2.html

This is wrong.  Please fix the validator.

Received on Friday, 23 September 2011 15:07:24 UTC