- non-standard end tags, such as
</img>
and</input>
, - the attribute
checked
rather thanchecked="checked"
, - presentational attributes other than
id
,class
, orstyle
— for example,bgcolor
andalign
, - a table structure for purely presentational (i.e., non-tabular) purposes,1 and
- the
font
tag.2
2: the
font
tag is deprecated but does not fail validation in any XHTML standard.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.
0 comments:
Post a Comment