Hi,
Sorry if this isn't the right ng, but you guys really know your stuff. Why doesn't this form validate?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd";>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<title>Title</title>
</head>
<body>
<form action="http://www.google.com/search"; method="get">
<input maxlength="256" size="25" name="q"/>
<input type="image" src="images/art.gif" alt="Google"/>
</form>
</body>
</html>


I get the follwoing errors:

Below are the results of attempting to parse this document with an SGML parser.

* Line 11, column 45:

<input maxlength="256" size="25" name="q"/>
^

Error: element "INPUT" not allowed here; possible cause is an inline element containing a block-level element
* Line 11, column 46:

<input maxlength="256" size="25" name="q"/>
^

Error: text is not allowed here; try wrapping the text in a more descriptive container
* Line 12, column 57:

<input type="image" src="images/art.gif" alt="Google"/>
^

Error: element "INPUT" not allowed here; possible cause is an inline element containing a block-level element
* Line 13, column 8:

</form>
^

Error: missing a required sub-element of "FORM"


Thanks


Reply via email to