tags:

views:

29

answers:

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

<body>

<form action="next.php" method="post">

<input type="text" name="my_input">

</form>

</body>
</html>
+3  A: 

Because according to this DTD inputs need to be nested in one of the following tags: P, H1, H2, H3, H4, H5, H6, PRE, DIV, ADDRESS:

<p>
    <input type="text" name="my_input">
</p>
Darin Dimitrov
Congrats on 100K :)
Mark Byers
@Mark, thank you.
Darin Dimitrov
+4  A: 

The validator already told you the reasons.

document type does not allow element "INPUT" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag

Use

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

<body>

<form action="next.php" method="post">

<p><input type="text" name="my_input"></p>

</form>

</body>
</html>
KennyTM