How to get Google Adsense for Search to Validate with W3C HTML 4.01

Discussion in 'AdSense' started by mrukjames, Mar 26, 2008.

  1. #1
    Hi, what's going on with Google Adsense Search?
    Why doesn't it validate? Why isn't Google conforming to web standards?

    I've heard talks of being able to modify the code (that Google gives permission). Has anyone here done this, or know how to make it valid? Thanks.
     
    mrukjames, Mar 26, 2008 IP
  2. Barti1987

    Barti1987 Well-Known Member

    Messages:
    2,703
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    185
    #2
    As long as the core is OK, you can change the HTML.

    Web standard? No one really cares about it. You can see that big companies doesn't conform to it.

    It is just a waste of time/money and no one will be willing to pay extra money to "conform" to some standards.

    Also every browser has different standards (firefox/IE/Opera/etc..).

    People code for browsers, not standards. If it works on most web browsers, then it is fine.

    Peace,
     
    Barti1987, Mar 26, 2008 IP
  3. angilina

    angilina Notable Member

    Messages:
    7,824
    Likes Received:
    186
    Best Answers:
    0
    Trophy Points:
    260
    #3
    If you try to validate google.com, that will also give you some errors :)

    Anyway, if you still want to be validate W3C, then here is a search code that I have on my site, and my site passes this test.

    I have removed the code, as it was not fitting in screen.

    You can see the code in my site in signature.
     
    angilina, Mar 26, 2008 IP
  4. mrukjames

    mrukjames Peon

    Messages:
    66
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hi Guys, thanks.
    I've had a look at your code, and it doesn't validate with my doctype. Does this type of application only work with XHTML? Can I use Google Search with simple HTML 4.01?
     
    mrukjames, Apr 4, 2008 IP
  5. mrukjames

    mrukjames Peon

    Messages:
    66
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I'm surprised there's not many people out there who have experienced this problem!
    Do you validate your pages and also have Google Search? If yes then reply now!
    If you Google search this subject, this thread is the only thing that comes up on the subject. It's crazy.
     
    mrukjames, Apr 5, 2008 IP
  6. hulkster

    hulkster Peon

    Messages:
    1,705
    Likes Received:
    93
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I just fiddled with the Google Search code so that it does validate ... ;-)
     
    hulkster, Apr 5, 2008 IP
  7. mrukjames

    mrukjames Peon

    Messages:
    66
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Excellent! You're an angel. So basically you just remove the </imput> tags, and there is one </img> tag you need to get rid of- and then it validates. Wahoo! I just need to go on now and see if everything works.

    At least now when people have the same problem they can Google the subject and find this thread.
    Thanks for you help everybody. Problem solved.
     
    mrukjames, Apr 6, 2008 IP