Welcome to WebmasterWorld Guest from 54.146.211.105

Forum Moderators: incrediBILL & martinibuster

Message Too Old, No Replies

invalid html

failed w3 validation

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

Full Member

10+ Year Member

joined:Feb 5, 2002
posts:333
votes: 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

5:54 pm on July 1, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 18, 2003
posts:1925
votes: 0


You should add type="text/javascript" for proper validation.
5:57 pm on July 1, 2003 (gmt 0)

Senior Member from MT 

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 1, 2003
posts:1843
votes: 0


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

In full, to be validationally correct

SN

6:05 pm on July 1, 2003 (gmt 0)

Junior Member

10+ Year Member

joined:Apr 11, 2003
posts:198
votes: 0


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

<script type="text/javascript">

1:25 am on July 2, 2003 (gmt 0)

Preferred Member

10+ Year Member

joined:Mar 5, 2003
posts:636
votes: 0


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

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

9:10 am on July 2, 2003 (gmt 0)

Full Member

10+ Year Member

joined:Feb 5, 2002
posts:333
votes: 0


Thanks guys, just wondered why google omitted this from their cut & paste html
10:12 am on July 2, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:July 22, 2001
posts:2044
votes: 0


I'm having a similar problem with HTM 4.0, when I get the JS to validate, the ads won't show :-(
11:00 am on July 2, 2003 (gmt 0)

Preferred Member

10+ Year Member

joined:Apr 6, 2003
posts:630
votes: 0


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

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

4:48 pm on July 2, 2003 (gmt 0)

Preferred Member

10+ Year Member

joined:Mar 5, 2003
posts:636
votes: 0


PixelJuice,

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

9:57 am on July 3, 2003 (gmt 0)

Full Member

10+ Year Member

joined:Jan 9, 2003
posts:227
votes: 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...)
11:36 am on July 3, 2003 (gmt 0)

Preferred Member

10+ Year Member

joined:Apr 6, 2003
posts:630
votes: 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.

11:48 am on July 3, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:July 22, 2001
posts:2044
votes: 0


In fact they said I could change it, they're working on a valid JS apparently.
11:57 am on July 3, 2003 (gmt 0)

Preferred Member

10+ Year Member

joined:Mar 23, 2002
posts:602
votes: 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?
12:01 pm on July 3, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:July 22, 2001
posts:2044
votes: 0


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