__/ [ Els ] on Tuesday 14 March 2006 09:05 \__
> T.J. wrote:
>> "Els" <els.aNOSPAM@xxxxxxxxxx> wrote in message
>> news:16xpwfsh0cs0l.1mzh5t754k0z9.dlg@xxxxxxxxxxxxx
>>> T.J. wrote:
>>>
>>>> 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"
>>>
>>> Do you have a URL?
>>
>> 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.
>
> 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.
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 ›" />
<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
|
|