W3C home > Mailing lists > Public > www-validator@w3.org > April 2007

Re: Problem with validator

From: David Dorward <david@dorward.me.uk>
Date: Thu, 05 Apr 2007 23:02:51 +0100
Message-ID: <4615720B.80401@dorward.me.uk>
To: Jasper Magick <jasper.magick@gmail.com>
CC: www-validator@w3.org

Jasper Magick wrote:
> It says there is an </p> on line 200 that was never open

> <p>
>     <fieldset style="width:300px">
> </p> <- This is line 200

> As you can see, there is an open <p> that it goes along with.  I think
> this is an error on the validators part.

No, it isn't. The end tag for the p element is optional in HTML. The p
element cannot contain block elements like fieldset, so the start tag
for the fieldset element closes the p element by implication. Thus there
isn't an option p element when the p end tag is reached.

This is described in the error message you provided a screen shot of.

(Incidentally, double line breaks are a poor substitute for margins and
images with captions are not a set of fields).

David Dorward                               <http://dorward.me.uk/>
Received on Thursday, 5 April 2007 22:03:10 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:51 UTC