Jump to content
IGNORED

html code errors


Soi Sauce

Recommended Posts

On my little old blogger blog there should be 3 sets of Google adsense, however only two display. According to the Bling Clogger (Google team) I have a HTML code error on my site. Apparently there are to many </div/,s in the following block of code -

 

<div class='clear'></div>

</div><div class='widget AdSense' id='AdSense2'>

 

If I was to remove the second </div> all would become good again. The only thing is I can't get them to tell me how to find it. I open my blog and expand the template, search through 5000 lines of code but it aint there so, where is the offending block of code to be found/

 

Heeeelp.. Theres a Singha in it hehe

Link to comment
Share on other sites

try running your code through http://validator.w3.org/ - it will highlight all html code errors by line number...

 

Cheers

 

ouch it looks a bit worsererer now? any suggestions?

  1. error.pngLine 2, Column 219: Attribute xmlns:b not allowed here.
    …www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>

  2. warning.pngLine 2, Column 219: Attribute with the local name xmlns:b is not serializable as XML 1.0.
    …www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>

  3. error.pngLine 2, Column 219: Attribute xmlns:data not allowed here.
    …www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>

  4. warning.pngLine 2, Column 219: Attribute with the local name xmlns:data is not serializable as XML 1.0.
    …www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>

  5. error.pngLine 2, Column 219: Attribute xmlns:expr not allowed here.
    …www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>

  6. warning.pngLine 2, Column 219: Attribute with the local name xmlns:expr is not serializable as XML 1.0.
    …www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>

  7. warning.pngLine 2, Column 219: Attribute b:version is not serializable as XML 1.0.
    …www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>

  8. error.pngLine 2, Column 219: Attribute b:version not allowed on element html at this point.
    …www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>
    Attributes for element html: Global attributes manifest
  9. error.pngLine 18, Column 60: Bad value X-UA-Compatible for attribute http-equiv on element meta.
    <meta content='IE=EmulateIE7' http-equiv='X-UA-Compatible'/>

  10. error.pngLine 23, Column 55: Bad value MSSmartTagsPreventParsing for attribute name on element meta: Keyword mssmarttagspreventparsing is not registered.
    <meta content='true' name='MSSmartTagsPreventParsing'/>
    Syntax of metadata name: A metadata name listed in the HTML specification or listed in the WHATWG wiki. You can register metadata names on the WHATWG wiki yourself.
  11. error.pngLine 29, Column 154: Bad value service.post for attribute rel on element link: Keyword service.post is not registered.
    … Atom" href="http://www.blogger.com/feeds/5093915382050447738/posts/default" />
    Syntax of link type valid for <link>: A whitespace-separated list of link types listed as allowed on <link> in the HTML specification or listed as an allowed on <link> on the Microformats wiki without duplicate keywords in the list. You can register link types on the Microformats wiki yourself.
  12. error.pngLine 38, Column 127: & did not start a character reference. (& probably should have been escaped as &.)
    …n.css?targetBlogID=5093915382050447738&zx=a9f99668-7064-4536-bfee-95e622fa363e…

  13. error.pngLine 547, Column 31: script element between head and body.
    <script type='text/javascript'>

  14. error.pngLine 547, Column 31: Cannot recover after last error. Any further errors will be ignored.
    <script type='text/javascript'>

Link to comment
Share on other sites

On my little old blogger blog there should be 3 sets of Google adsense, however only two display. According to the Bling Clogger (Google team) I have a HTML code error on my site. Apparently there are to many </div/,s in the following block of code -

 

<div class='clear'></div>

</div><div class='widget AdSense' id='AdSense2'>

 

If I was to remove the second </div> all would become good again. The only thing is I can't get them to tell me how to find it. I open my blog and expand the template, search through 5000 lines of code but it aint there so, where is the offending block of code to be found/

 

Heeeelp.. Theres a Singha in it hehe

 

You didn't close the DIV correctly:

 

 

<div class="clear"></div>

<div id="AdSense2" class="widget AdSense"></div>

 

Also, it's best to use full quotes not single quotes in HTML, and put the ID first - just good habit.

Link to comment
Share on other sites

You didn't close the DIV correctly:

 

 

<div class="clear"></div>

<div id="AdSense2" class="widget AdSense"></div>

 

Also, it's best to use full quotes not single quotes in HTML, and put the ID first - just good habit.

 

Er.. no. I cant find the code to change thats me prombeam? the only ref: to Adsense2 I can find by expanding the template is

 

</div>

<div class='fauxborder-left tabs-fauxborder-left'>

<div class='fauxborder-right tabs-fauxborder-right'/>

<div class='region-inner tabs-inner'>

<b:section class='tabs' id='crosscol' maxwidgets='1' showaddelement='yes'>

<b:widget id='AdSense2' locked='false' title='' type='AdSense'>

<b:includable id='main'>

<div class='widget-content'>

<data:adCode/>

<b:include name='quickedit'/>

</div>

 

Its doing me head big time

Edited by Soi Sauce
Link to comment
Share on other sites

why don't you use your text editor's search function?

 

:Think1:

Link to comment
Share on other sites

Er.. no. I cant find the code to change thats me prombeam? the only ref: to Adsense2 I can find by expanding the template is

 

  </div>
<div class='fauxborder-left tabs-fauxborder-left'>
<div class='fauxborder-right tabs-fauxborder-right'/>
<div class='region-inner tabs-inner'>
  <b:section class='tabs' id='crosscol' maxwidgets='1' showaddelement='yes'>
<b:widget id='AdSense2' locked='false' title='' type='AdSense'>
<b:includable id='main'>
 <div class='widget-content'>
<data:adCode/>
<b:include name='quickedit'/>
 </div>

 

Its doing me head big time

 

I don't know AdSense but it's clear your example is still wrong. The thing you need to know is that most HTML occurs in paired tags - one opens and one closes, and it almost always closes with a / before the tag name.

 

In your example, the very first line is closing the pair before it opens and I don't see many closing tags, so let's clean this up a little so it's easier to read. Traditionally, you'd tab in every time you open a new pair of HTML tags:

 

 

</div>
   <div class='fauxborder-left tabs-fauxborder-left'>
       <div class='fauxborder-right tabs-fauxborder-right'/>
           <div class='region-inner tabs-inner'>
               <b:section class='tabs' id='crosscol' maxwidgets='1' showaddelement='yes'>
               <b:widget id='AdSense2' locked='false' title='' type='AdSense'>
               <b:includable id='main'>
                   <div class='widget-content'>
                       <data:adCode />
                       <b:include name='quickedit' />
                   </div>

 

First line: it starts with a close tag </div> - you know it's closing because of the / so that's clearly wrong.

 

Second line: you don't use the /> on a tag pair.

 

Third: You then open 4 <DIV>s but only close the last pair (the "widget-content").

 

Is this all the HTML you have?

Link to comment
Share on other sites

Carrying on from Woofies post, all elements, including <b:section....>, <b:widget...> etc. also need to be closed. Might help if you post the entire codeblock where you want do display the ad...

9 people can't make a baby in one month

Link to comment
Share on other sites

Been banging me head over this all day .. even went into the expand widgets doda and started deleting bits. Just random really. No idea what I was doing. Then right at the bottom of the page was a "Rest side bar widget" thingy. I reckon by the use of all the technical terms you can tell I am genuinely hopeless at this. Any road up I clicked, added some more: adsense and BINGO. Its actually appearing, taking today's earnings ... to £1.37 (its a start hehe) cheers for all you help and advice

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • COVID-19

    Any posts or topics which the moderation team deems to be rumours/speculatiom, conspiracy theory, scaremongering, deliberately misleading or has been posted to deliberately distort information will be removed - as will BMs repeatedly doing so. Existing rules also apply.

  • Advertise on Pattaya Addicts
  • Recently Browsing

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.