AdSense for search (AFS)

Modify the search code for W3C HTML and XHTML

In general, as specified in our program policies, we don't permit modifications to the AdSense code; however we do allow specific modifications that allow our AdSense for search code to comply with W3C HTML and XHTML standards.

Here are the changes that you'll need to make in order for your code to be compliant:

  1. Remove the closing </input> and </image> tags
  2. Add an additional closing '/' to the end of the opening html tags for <input> and <image>. This should occur for all 'image' and 'input' tags.

For example, this is an unmodified portion of the AdSense for search code:

<img src="" border="0" alt="Google" align="middle"></img></a>
<input type="hidden" name="oe" value="ISO-8859-1"></input>

This is what the modified version would look like:

<img src="" border="0" alt="Google" align="middle" /></a>
<input type="hidden" name="oe" value="ISO-8859-1" />

Please be sure to modify the search code only as described above, since our program policies do not allow any additional modifications.
Was this helpful?
How can we improve it?

Need more help?

Sign in for additional support options to quickly solve your issue