AdSense for mobile content allows publishers to generate earnings from their mobile websites using targeted Google advertisements. Just like AdSense for content, Google matches advertisements to the content of a website — in this case, a mobile website.
[edit] XHTML compatibility
As of September 2007, the HTML code for the AdSense search box does not validate as XHTML, and does not follow modern principles of website design because of its use of
* non-standard end tags, such as and ,
* the attribute checked rather than checked="checked",
* presentational attributes other than id, class, or style — for example, bgcolor and align,
* a table structure for purely presentational (i.e., non-tabular) purposes, and
* the font tag.
Additionally, the AdSense advertisement units use the JavaScript method document.write(), which does not work correctly when rendered with the application/xhtml+xml MIME type. The units also use the iframe HTML tag, which is not validated correctly with the XHTML 1.0 Strict or XHTML 1.0 Transitional DOCTYPEs.
The terms of the AdSense program forbid its affiliates from modifying the code, thus preventing these participants from having valid XHTML websites.
However, a workaround has been found by creating a separate HTML webpage containing only the AdSense advertisement units, and then importing this page into an XHTML webpage with an object tag.[8] This workaround appears to be accepted by Google.
Inscription à :
Publier les commentaires (Atom)

Aucun commentaire:
Enregistrer un commentaire