Web Analytics Made Easy -
StatCounter need help in correcting Xhtml - CodingForum

Announcement

Collapse
No announcement yet.

need help in correcting Xhtml

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • need help in correcting Xhtml

    When I validate my site http://counsellinginfo.blogspot.com/ with validator.w3.org , it shows errors, am not able to fix them, can anyone help me with this.
    Thanks a lot.

  • #2
    Wow umm ok well over 200 errors. Not sure anyone can step you through fixing each one. Read what the descriptions of the errors are. For instance, the first 20 or so I looked at were because of unencoded special characters like the & character. You can use the html entity (&amp in place of the actual ampersand character. There were many others as well.

    All I can say is if you really want to have valid clean code, work through them one at a time. Pick easy ones to fix first. The unclosed or mismatched element tags are easy to fix. Improperly nested elements like inserting a block level element inside an inline element. Things like that are easily fixed to dwindle down those 200+ errors. Then saving the hard or confusing ones until last, you can post them back here to get hjelp on those specific errors. Good luck!
    Teed

    Comment


    • #3
      i think the problem is more simplistic than first imagined...

      look at this
      Code:
      <meta content='text/html; charset=utf-8' http-equiv='Content-Type'/>
      change that to
      Code:
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      it's worth a try... for what it is worth when viewing source code the code snip posted (from your site) has a different color scheme than the code I posted (yahoo's meta tag)... so I think the quotes might be throwing errors.

      I code C hash-tag .Net
      Reference: W3C W3CWiki .Net Lib
      Validate: html CSS
      Debug: Chrome FireFox IE

      Comment


      • #4
        @ Teed thanks for ur feedback, yup 2 many errors, actually i downloaded a blogger template for this, do u suggest that i discard this one and start afresh with the ones tht blogger provides(though they are just not up to the mark)

        Comment


        • #5
          @ alkyns ..... thanks for ur suggestion, but i am not well versed with html n all, hv been trying hard to fix this, tried html kit, cs validator, whtever i cud do as a lay person, but no success, suggest some more ways of handling this

          Comment


          • #6
            Originally posted by cerebrl View Post
            @ alkyns ..... thanks for ur suggestion, but i am not well versed with html n all, hv been trying hard to fix this, tried html kit, cs validator, whtever i cud do as a lay person, but no success, suggest some more ways of handling this
            try copy/pasting the line of code i wrote over top of what you had (or go in and change your single quotes (') to double quotes (")... need to use double quotes for html/CSS... single quotes are used in other languages, but html/CSS always doubles

            I code C hash-tag .Net
            Reference: W3C W3CWiki .Net Lib
            Validate: html CSS
            Debug: Chrome FireFox IE

            Comment


            • #7
              Originally posted by alykins View Post
              try copy/pasting the line of code i wrote over top of what you had (or go in and change your single quotes (') to double quotes (")... need to use double quotes for html/CSS... single quotes are used in other languages, but html/CSS always doubles
              Sorry to disagree but I have to disagree. It doesn’t matter at all if you have single or double quotes in HTML as long as they match (open/close). Likewise, the order of attributes is totally irrelevant so the code you provided above doesn’t change anything (besides the fact that you’re missing the closing slash that’s mandatory in XHTML).

              Code:
              <meta content='text/html; charset=utf-8' http-equiv='Content-Type' />
              <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
              <meta content="text/html; charset=utf-8" http-equiv='Content-Type' />
              <meta content='text/html; charset=utf-8' http-equiv="Content-Type" />
              <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
              <meta http-equiv='Content-Type' content='text/html; charset=UTF-8' />
              <meta http-equiv="Content-Type" content='text/html; charset=UTF-8' />
              <meta http-equiv='Content-Type' content="text/html; charset=UTF-8" />
              That’s all doing the same and not throwing up any error.
              Stop solving problems you don’t yet have!

              Comment


              • #8
                hmmm... idk then... i don't see why all his code is throwing errors... i looked through where the errors are being thrown and some are actually in his href links... i dont think they should throw errors... the only thing i could think was the quotes were off...

                I code C hash-tag .Net
                Reference: W3C W3CWiki .Net Lib
                Validate: html CSS
                Debug: Chrome FireFox IE

                Comment


                • #9
                  A lot of errors come from unencoded ampersands (or by not declaring internal JS as character data) but I’mnot even sure if a free service like blogspot even allows to have full control over the output source code (I doubt that) so in the worst case one will never get rid of all errors.
                  Stop solving problems you don’t yet have!

                  Comment


                  • #10
                    Originally posted by mando
                    Thanks for all these good information.... i wanna know what the different between HTML 4 and Xhtml

                    HTMLFixIT.com, A site for those just beginning the journey of creating and hosting sites on the world wide web




                    A community for web designers and developers to discuss everything from HTML, CSS, JavaScript, PHP, to Photoshop, SEO and more.

                    Comment


                    • #11
                      Thanks everyone for the suggestions, since i cudnt fix them, i changed the template n quite releived nw, down to 80 errors nw, adsense nw has rejected my acc on ground of page type, earlier they said its underconstruction, cant figure it out

                      Comment

                      Working...
                      X
                      😀
                      🥰
                      🤢
                      😎
                      😡
                      👍
                      👎