Re: Error in Checking invalid HTML code

> On Nov 26, 2022, at 4:14 PM, Andreas Prilop <aprilop@freenet.de> wrote:
> 
> On 26 November 2022, Chuck Houpt wrote:
> 
>> Specifically, a missing </body> tag is an error in HTML4-strict
> 
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
> <title></title><p>
> 
> is valid.

Right, I should have been more clear. Here's a minimal example that produces the error: "BODY" not finished but document ended

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<title></title><body>

That error occurs with an empty body with no closing </body> tag, as in the original poster's example.

- Chuck

Received on Saturday, 26 November 2022 22:05:20 UTC