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

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