Skip to content

Instantly share code, notes, and snippets.

@leehambley
Created June 16, 2009 12:53
Show Gist options
  • Save leehambley/130667 to your computer and use it in GitHub Desktop.
Save leehambley/130667 to your computer and use it in GitHub Desktop.
Validation Output: 1 Error
Line 16, Column 59: document type does not allow element "form" here; missing one of "object", "div", "blockquote", "center", "noframes", "fieldset", "applet", "map", "iframe", "noscript", "ins", "del" start-tag
<form action="two" method="get" accept-charset="utf-8">
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>untitled</title>
</head>
<body>
<form action="one" method="get" accept-charset="utf-8">
<label for="yadda">Yadda</label>
<input type="text" name="yadda" value="" id="yadda" />
<form action="two" method="get" accept-charset="utf-8">
<label for="badda_bing">Badda Bing</label>
<input type="text" name="badda_bing" value="" id="badda_bing" />
<p><input type="submit" value="Continue &rarr;" /></p>
</form>
<p><input type="submit" value="Continue &rarr;" /></p>
</form>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment