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>


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"
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<title>Test XHTML Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<form method="get" action="http://www.brianwilliams.com/xhtml.html">
<input type="hidden" name="action" id="action" value="gotohome" />
<input type="submit" value="Submit" />

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

This archive was generated by hypermail 2.3.1 : Friday, 27 November 2015 11:01:27 UTC