Welcome to WebmasterWorld Guest from 54.226.27.104

Forum Moderators: incrediBILL & martinibuster

Message Too Old, No Replies

invalid html

failed w3 validation

     

incywincy

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

10+ Year Member



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

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

WebmasterWorld Senior Member 10+ Year Member



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

killroy

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

WebmasterWorld Senior Member 10+ Year Member



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

In full, to be validationally correct

SN

waldemar

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

10+ Year Member



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

<script type="text/javascript">

Oaf357

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

10+ Year Member



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

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

incywincy

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

10+ Year Member



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

glengara

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

WebmasterWorld Senior Member 10+ Year Member



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

pixel_juice

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

10+ Year Member



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

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

Oaf357

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

10+ Year Member



PixelJuice,

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

saoi_jp

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

10+ Year Member



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

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

10+ Year Member



>>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

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

WebmasterWorld Senior Member 10+ Year Member



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

Visi

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

10+ Year Member



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

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

WebmasterWorld Senior Member 10+ Year Member



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

Featured Threads

Hot Threads This Week

Hot Threads This Month