This page is not Valid XHTML 1.0 Transitional [NEED HELP TO VALIDATE]

Discussion in 'HTML & Website Design' started by cchetanonline, Jun 15, 2008.

  1. #1
    Hello Programmers,
    actually i dont have knowledge of XHTML or PHP or similar languages

    I just edited my Wordpress theme TOO MUCH (i can do simple changes though), and as a result i am getting lots of error in W3C validation :(

    even IE 6 Showing "Page Loaded but with errors !!"
    so any one here who can help me out ?,

    Its WORDPRESS BLOG, PR 4, but such errors !!

    Here is the validation link

    Please let me know if anyone can help in this matter
    Helpers will be get rep+
     
    cchetanonline, Jun 15, 2008 IP
  2. blueparukia

    blueparukia Well-Known Member

    Messages:
    1,564
    Likes Received:
    71
    Best Answers:
    7
    Trophy Points:
    160
    #2
    1. Put all your tags in lowercase - META should be meta, SCRIPT should be script. Thats bad practice, looks ugly and is invalid.

    2. After every <script> tag (before the Javascript), put
    <!--
    Code (markup):
    Before every </script> tag, put //-->
    So your Javascript things should look similar to this:
    <script><!--
    //Javascript here
    //-->
    </script>
    Code (markup):
    3. Replace
    language="javascript"
    Code (markup):
    with
    type="text/javascript"
    Code (markup):
    4. "<br>" must become "<br />".

    That should solve a fair bit of it.
     
    blueparukia, Jun 16, 2008 IP
    cchetanonline likes this.
  3. cchetanonline

    cchetanonline Banned

    Messages:
    2,143
    Likes Received:
    244
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Ohh, so these are few Problem
    I will try to replace all your given suggestions

    Thanks very much for this usefull post, i wil let you know when i am ready with above mentioned changes :)
    rep+ added
     
    cchetanonline, Jun 16, 2008 IP
  4. cchetanonline

    cchetanonline Banned

    Messages:
    2,143
    Likes Received:
    244
    Best Answers:
    0
    Trophy Points:
    0
    #4
    This Page Is Valid XHTML 1.0 Transitional!
    Thanks very much :) It took 2Hr to Do this various works on it , i also removed few widgets which were causing these .

    But one more problem
    Whenever i add ALEXA WIDGET on my Site it again shows problem :)

    Do we need to change in that ?
    If yes pls do specify them , i need on my blog, i want to increase alexa rank
     
    cchetanonline, Jun 16, 2008 IP
  5. Divisive Cottonwood

    Divisive Cottonwood Peon

    Messages:
    1,674
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Is the Alexa widget flash? There are serious validation problems with embedding Flash into HTML / XHTML...

    You recommended way by Adobe is to actually embed flash using PHP...

    If they've got a javascript version of their widget use that instead of flash...
     
    Divisive Cottonwood, Jun 16, 2008 IP
    cchetanonline likes this.
  6. Divisive Cottonwood

    Divisive Cottonwood Peon

    Messages:
    1,674
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I've just gone through to the page and I see that it is javascript... hmm... if you are cutting and pasting from a HMTL page make sure that you unformat it first... cut and past it into notepad and from there into you code... just a thought...

    And are you putting this into the head with the rest in the body?

    <script type="text/javascript"
    src="http://widgets.alexa.com/traffic/javascript/graph.js"></script>

    <script type="text/javascript">/*
     
    Divisive Cottonwood, Jun 16, 2008 IP
  7. blueparukia

    blueparukia Well-Known Member

    Messages:
    1,564
    Likes Received:
    71
    Best Answers:
    7
    Trophy Points:
    160
    #7
    Can you please post me the code of the Alexa thing? If its flash, just live with it. There are ways around it, but IMO, its not worth it.

    Next step is getting to validate it strict :p

    Thanks.
     
    blueparukia, Jun 16, 2008 IP
  8. cchetanonline

    cchetanonline Banned

    Messages:
    2,143
    Likes Received:
    244
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Alexa widget is NON FLASH
    Its just Java Script

    here its Code
    
    <SCRIPT type='text/javascript' language='JavaScript' src='http://xslt.alexa.com/site_stats/js/t/a?url=http%3A%2F%2Fwww.orangmuda.com'></SCRIPT>
    Code (markup):
    Please try to make it W3C Validate :)



    I need it to put it in <BODY> and not under <HEAD>
    and with ref: to my blog link , pls check the above code
     
    cchetanonline, Jun 16, 2008 IP
  9. blueparukia

    blueparukia Well-Known Member

    Messages:
    1,564
    Likes Received:
    71
    Best Answers:
    7
    Trophy Points:
    160
    #9
    Remember what I said about lowercase?

    Try this:
    
    <script type="text/javascript" src="http://xslt.alexa.com/site_stats/js/t/a?url=http%3A%2F%2Fwww.orangmuda.com"></script>
    Code (markup):
     
    blueparukia, Jun 16, 2008 IP
  10. cchetanonline

    cchetanonline Banned

    Messages:
    2,143
    Likes Received:
    244
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Now Working fine
    Thanks very much :)

    I think my problem solved ..
     
    cchetanonline, Jun 16, 2008 IP