W3C home > Mailing lists > Public > www-validator@w3.org > November 2002

Re: Error: element "form" not allowed here. Need some assistance!

From: Liam Quinn <liam@htmlhelp.com>
Date: Sun, 10 Nov 2002 19:23:27 -0500 (EST)
To: Aziz Matar <matar84@comcast.net>
cc: www-validator@w3.org
Message-ID: <Pine.LNX.4.44.0211101921400.9576-100000@localhost.localdomain>

On Fri, 8 Nov 2002, Aziz Matar wrote:

> I am getting the error message below when validating this page http://www.ndose.com/index.html
> a.. Line 22, column 56: 
>   <p><form action="../cgi-bin/mail/mail.cgi" method="post">
>                                                           ^Error: element "form" not allowed here; possible cause is an inline element containing a block-level element 
> I looked at it over and over and cannot understand the problem.

"p" cannot contain block-level elements such as "form".

(This is an error in XHTML but not HTML because the </p> tag is optional 
in HTML and thus inferred by the <form> tag.)

Liam Quinn
Received on Sunday, 10 November 2002 19:23:29 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:58:30 UTC