1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Adsense causing a HTML error!!

Discussion in 'HTML & Website Design' started by zak, Apr 23, 2005.

  1. #1
    Hi,

    Little problem,

    adesense is causing a
    SEMrush
    '<script> tag not allowed here' error using W3C HTML validator!

    Is this a common thing or have I done summat wrong?? :confused:
     
    zak, Apr 23, 2005 IP
    SEMrush
  2. Arnica

    Arnica Peon

    Messages:
    320
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The validator is showing an erroneous <tr> element prior to the <script> error. I would correct the <tr> and validate again. That's if it is the site in your sig. ;)

    Mick
     
    Arnica, Apr 23, 2005 IP
  3. Investor

    Investor Banned

    Messages:
    40
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Don't use html validator, you will never get perfect results.
     
    Investor, Apr 23, 2005 IP
  4. zak

    zak Peon

    Messages:
    175
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #4
    what do you use??
     
    zak, Apr 24, 2005 IP
  5. noppid

    noppid gunnin' for the quota

    Messages:
    4,246
    Likes Received:
    232
    Best Answers:
    0
    Trophy Points:
    135
    #5

    That's a load of crap! If you can't write HTML that validates, that's a skills problem, not the validators problem.

    You should try at least to validate. Code is code, there is absolutly no reason tags should not balance. Using the validator at w3c will guarantee you alot of compatibility and save you lot's of time.
     
    noppid, Apr 24, 2005 IP
  6. zak

    zak Peon

    Messages:
    175
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #6
    The tag actually is in the right place! all it says it tag not allowed here. I suppose it thinks a script tag should only be allowed in the head...

    So anyone get the same problem with the script tag for google adsense?
     
    zak, Apr 24, 2005 IP
  7. Arnica

    Arnica Peon

    Messages:
    320
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Zak

    Your <tr> at Line 168 is in the wrong place.

    Account</u></a>?</span></td>
    	</tr>
    	[color=red]<tr>[/color]
    [color=red]		 <tr>[/color]
    			<td class="main">
    <br><br>
    
    Code (markup):
    It belongs further down the code segment.

    Also try wrapping your <script> block in a <tr><td> block which should validate.

    Mick
     
    Arnica, Apr 24, 2005 IP
  8. zak

    zak Peon

    Messages:
    175
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I cant believe I missed that! cheers. your a good man.
     
    zak, Apr 29, 2005 IP