XHTML + <form ...> </form> BUG?

Hello!

For hours I have tried to get the following for validate, but for some
reason, I always get an "element 'input' not allowed here; possible cause is
an inline element containing a block-level element" error. Am I just too
dumb or is it a bug in the validator?

Oh, here's the piece of code that I can't get validated:

--------------------

<?xml version="1.0" encoding="iso-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>Some weird test that does not work</title>

  <link rel="stylesheet" type="text/css" href="./stylesheet.css" />
</head>
<body>

<div class="notes">Some text here...</div>

<form action="test" method="post">
<input type="text" name="a" ></input>
</form>

</body>
</html>

--------------------

Please send me a private Cc e-mail if you know what the problem is since I
need to solve this problem as soon as possible.
Thank you very much in advance!

Sebastian

Received on Sunday, 23 September 2001 11:46:16 UTC