Go Back   WarriorForum - Internet Marketing Forums > The Warrior Forum > Adsense / PPC / SEO Discussion Forum
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 07-02-2011, 06:03 AM   #1
Warrior Member
 
Join Date: Jun 2011
Location: Holtsville
Posts: 25
Thanks: 10
Thanked 3 Times in 3 Posts
Arrow 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 </img> and </input>,
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,1 and
the font tag.2
1: using a table structure for unintended purposes is strongly discouraged by the W3C,[11] but nevertheless does not cause a document to fail validation — there is currently no algorithmic method of determining whether a table is used "correctly" (for displaying tabular data or for displaying elements, that get proportionally wider or narrower when browser window resizes in width without active client side scripting).
2: the font tag is deprecated but does not fail validation in any XHTML standard[citation needed].
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.This workaround appears to be accepted by Google
unkle cortez is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > The Warrior Forum > Adsense / PPC / SEO Discussion Forum

Tags
compatibility, xhtml

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 08:27 AM.