aj_nsc
02-25-2007, 02:36 PM
Anybody want to tell me why this would be invalid XHTML 1.0 strict? (If it's not, then I would like to point out then there's a problem with W3C's XHTML Validator - trust me, I checked - I correctly checked, I'm not a beginner).
In order for the below code to validate the form tag has to have a nested block level element, (before any content, obviously). I was unaware of this. Can anyone point me to the rules of using forms with XHTML?
For space sake, pretend I have the doctype and all that jazz declared
...
<body>
<div>
<form method="post" action="script.php">
<input type="text" name="something" size="25" />
</form>
</div>
</body>
...
In order for the below code to validate the form tag has to have a nested block level element, (before any content, obviously). I was unaware of this. Can anyone point me to the rules of using forms with XHTML?
For space sake, pretend I have the doctype and all that jazz declared
...
<body>
<div>
<form method="post" action="script.php">
<input type="text" name="something" size="25" />
</form>
</div>
</body>
...