homepage Welcome to WebmasterWorld Guest from 54.234.228.64
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Google / Google AdSense
Forum Library, Charter, Moderators: incrediBILL & jatar k & martinibuster

Google AdSense Forum

    
invalid html
failed w3 validation
incywincy




msg:1412127
 5:39 pm on Jul 1, 2003 (gmt 0)

hi everyone,

i have thousands of dynamic pages into which i've inserted adsense code. the code is inserted into a table cell.

when i tried to validate it using the w3 tool i got the following errors:

Line 41, column 51: required attribute "TYPE" not specified (explain...).
<td width="33%"><script language="JavaScript">
^
Line 50, column 63: required attribute "TYPE" not specified (explain...).
...tp://pagead2.googlesyndication.com/pagead/show_ads.js">

have i done something wrong here?

thanx in advance

 

moltar




msg:1412128
 5:54 pm on Jul 1, 2003 (gmt 0)

You should add type="text/javascript" for proper validation.

killroy




msg:1412129
 5:57 pm on Jul 1, 2003 (gmt 0)

<script language="javascript" type="text/javascript">

In full, to be validationally correct

SN

waldemar




msg:1412130
 6:05 pm on Jul 1, 2003 (gmt 0)

In addition to killroy... in case this is XHTML, just drop the language attribute:

<script type="text/javascript">

Oaf357




msg:1412131
 1:25 am on Jul 2, 2003 (gmt 0)

<script language="javascript" type="text/javascript">

Is what I'm using. Validates to XHTML perfectly.

incywincy




msg:1412132
 9:10 am on Jul 2, 2003 (gmt 0)

Thanks guys, just wondered why google omitted this from their cut & paste html

glengara




msg:1412133
 10:12 am on Jul 2, 2003 (gmt 0)

I'm having a similar problem with HTM 4.0, when I get the JS to validate, the ads won't show :-(

pixel_juice




msg:1412134
 11:00 am on Jul 2, 2003 (gmt 0)

>>just wondered why google omitted this from their cut & paste html

Because Google doesn't care about validation [validator.w3.org]?

Oaf357




msg:1412135
 4:48 pm on Jul 2, 2003 (gmt 0)

PixelJuice,

Good point. However, I have been told they are trying to make everything XHTML compliant.

saoi_jp




msg:1412136
 9:57 am on Jul 3, 2003 (gmt 0)

AdSense TOS forbid altering the code. I just took the "valid 4.01" button out of the site footer. (Kinda wonder now why I'd wanted the button there in the first place...)

pixel_juice




msg:1412137
 11:36 am on Jul 3, 2003 (gmt 0)

>>Kinda wonder now why I'd wanted the button there in the first place..

Just so people know that you've taken the time to make your site as accessible to everyone as possible?

I'm not using adsense, but if I was, I would break the TOS and make the code valid. I couldn't really see Google having a problem with that.

glengara




msg:1412138
 11:48 am on Jul 3, 2003 (gmt 0)

In fact they said I could change it, they're working on a valid JS apparently.

Visi




msg:1412139
 11:57 am on Jul 3, 2003 (gmt 0)

Not quite sure what you are referring to here? Checked the code I downloaded this week and the following is the first line....<script language="JavaScript" type="text/JavaScript">. So either goole has already changed or you clipped wrong?

glengara




msg:1412140
 12:01 pm on Jul 3, 2003 (gmt 0)

You're right Visi, they have already changed it.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Google / Google AdSense
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved