Search Engine Optimization > Webmaster World > Goggle searchbox stops page validating
Goggle searchbox stops page validating
Posted by T.J. on March 14th, 2006

I added a Google search box to my page
and now when checking with the validators
it produces errors and says
"end tag for element "INPUT" which is not open"

Is there anything I can do about this, apart from
removing the search box?
TIA.


Posted by Els on March 14th, 2006

T.J. wrote:

Do you have a URL?

--
Els http://locusmeus.com/

Now playing: Technohead - I Wanna Be A Hippy

Posted by T.J. on March 14th, 2006


"Els" <els.aNOSPAM@tiscali.nl> wrote in message
news:16xpwfsh0cs0l.1mzh5t754k0z9.dlg@40tude.net...
Thanks for the reply.
URL is
http://www.uksmallbusinessdirectory.co.uk
it's the search box top middle of page.
It is an AdSense search box which is also a
site search.




Posted by Els on March 14th, 2006

T.J. wrote:
The doctype on your page is HTML transitional, but Google's searchbox
code validates as XHTML transitional (hence the closing tags on input
elements).
You have 3 choices: change your doctype to XHTML transitional and then
try to solve the 217 resulting erros in your own code ;-) or stick to
HTML transitional and either delete the </input> and </p> tags from
Google's code, or put up with the 13 errors.

--
Els http://locusmeus.com/

Now playing: Keziah Jones - Rhythm is Love (Live)

Posted by Roy Schestowitz on March 14th, 2006

__/ [ Els ] on Tuesday 14 March 2006 09:05 \__

Off my source (valid XHTML/CSS):

<form method="get" action="http://www.google.com/custom">
<br/>
<div>
<input type="text" name="q" size="15" maxlength="255" value="" /><br/>
<input type="submit" name="sa" value="Google &rsaquo;" />

<input type="hidden" name="sitesearch" value="example.org" />
<input type="hidden" name="client" value="pub-2479740519054892"></input>
<input type="hidden" name="forid" value="1"></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="cof" value="<<<<SITE-SPECIFIC>>>>>"></input>
<input type="hidden" name="hl" value="en"></input>
</div>
</form>

Hope it helps,

Roy

Posted by Els on March 14th, 2006

Roy Schestowitz wrote:



That's still XHTML, and not HTML. OP needs to delete the </input> and
</p> from the code, and it will validate with his current code, which
is HTML transitional.

--
Els http://locusmeus.com/

Now playing: Christina Aguilera - Dirrty (ft. Redman)

Posted by William Tasso on March 14th, 2006

Fleeing from the madness of the LocusMeus.com jungle
Els <els.aNOSPAM@tiscali.nl> stumbled into news:alt.www.webmaster
and said:

wassup with closing paragraphs "</p>" in HTML?

--
William Tasso

whither a trophy?

Posted by Roy Schestowitz on March 14th, 2006

__/ [ Els ] on Tuesday 14 March 2006 09:18 \__

Oops. I got it all reversed. I need to actually read rather than let my eyes
wander.

Posted by Els on March 14th, 2006

William Tasso wrote:

Duh :\

It was one of the errors, and I didn't even turn my brain on, and
automatically filed it under 'XHTML vs HTML closing tags'.

Obviously, closing </p> tags are good, and the error pointed to real
superfluous ones elsewhere in the code. I checked, and they're outside
the Google searchbox code. I'll switch on the brain now...

--
Els http://locusmeus.com/

Now playing: Christina Aguilera - I'm OK

Posted by T.J. on March 14th, 2006


"Els" <els.aNOSPAM@tiscali.nl> wrote in message
news:1wgxh314xhjyd$.uncz2fvkkhpn.dlg@40tude.net...
Thank you,

To late in the day now for me to switch to
XHTML, HTML transitional is about my limit.

I thought it was just a case of removing </input>
but are not sure if this has any effect with the
search box?
It seems to work OK, but as google says you
shouldn't alter the code, is doing so likely to
have any effect with the AdSense program?



Funbolt.com - Entertainment portal, wallpapers, sexy celebs