Forum Moderators: martinibuster
Basically, all my sites try to be validated. I've just added adsense for search to my pages and they don't validate. The W3C validation tool I use says:
Line 237, character 61:
... value="Google Search"></input>
^Error: end tag for element INPUT which is not open; try removing the end tag or check for improper nesting of elements
Line 239, character 52:
... ame="forid" value="1"></input>
^Error: end tag for element INPUT which is not open; try removing the end tag or check for improper nesting of elements
Line 240, character 63:
... l" value="9568890651735"></input>
^
and so on. Why is this? Has anyone else asked Google?
Line 237, character 61:
... value="Google Search"></input>
^Error: end tag for element INPUT which is not open; try removing the end tag or check for improper nesting of elementsLine 239, character 52:
... ame="forid" value="1"></input>
^Error: end tag for element INPUT which is not open; try removing the end tag or check for improper nesting of elementsLine 240, character 63:
... l" value="9568890651735"></input>
What is happening on line 236, 238 and what is the rest of 239?
eh? I'm talking about HTML W3C validation, not scripting debugging. The few lines before and after are all the same, Google search box coding. The error is quite clear as far as I can see, there is no open input tag yet google puts a </input> at the end of every line.
there is no open input tag yet google puts a </input> at the end of every line.
<form method="get" action="http://www.google.com/custom" target="google_window">
<input type="hidden" name="domains" value="www.****.com"></input>
<input type="text" name="q" size="19" maxlength="255" value=""></input>
<input type="submit" name="sa" value="Google Search">
</input>
<br />
<input type="radio" name="sitesearch" value="" checked="checked"></input>
<font size="-1" color="#000000">Them</font>
<input type="radio" name="sitesearch" value="www.****.com"></input>
<font size="-1" color="#000000">Us</font>
<input type="hidden" name="client" value="pub-random set of numbers"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="channel" value="more random numbers"></input>
<input type="hidden" name="ie" value="ISO-8859-1"></input>
<input type="hidden" name="oe" value="ISO-8859-1"></input>
<input type="hidden" name="safe" value="active"></input>
<input type="hidden" name="cof" value="GALT:#confused to protect the innocent"></input>
<input type="hidden" name="hl" value="en"></input>
</form>
all the lines start with input type.
if you want, sticky me the code