W3C home > Mailing lists > Public > www-validator@w3.org > December 2005

Input element in a form, what am I doing wrong?

From: Brian Williams <BWilliams@brianwilliams.com>
Date: Mon, 12 Dec 2005 21:06:06 -0600
To: <www-validator@w3.org>
Message-ID: <200512122166.030337@MAIN>

Validating 

I do not understand what this message means:

Error Line 13 column 65: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag.

....hidden" name="action" id="action" value="gotohome" />

The file can be accessed at http://www.brianwilliams.com/xhtml.html, which is a very simple file containing:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Test XHTML Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<form method="get" action="http://www.brianwilliams.com/xhtml.html">
<input type="hidden" name="action" id="action" value="gotohome" />
<input type="submit" value="Submit" />
</form>
</body>
</html>

What is wrong?
Received on Tuesday, 13 December 2005 09:11:20 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:20 GMT