The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. On-Page / Site Optimization
    4. Errors when checking W3C HTML after added Google Custom Search

    Errors when checking W3C HTML after added Google Custom Search

    On-Page / Site Optimization
    3 2 785
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • JohnHuynh
      JohnHuynh last edited by

      hello,

      I have added google custome search to my website, and then check with W3C HTML, it report many error. 
      eg: there is no attribute "enableHistory" <gcse:searchbox-only enablehistory="true" autocompletemaxcompletions="5" au…<br="">or  there is no attribute "resultsUrl"  and so on ...</gcse:searchbox-only>

      Has anyone face with this problem, I don't know how to fix it. Please help!

      1 Reply Last reply Reply Quote 0
      • matbennett
        matbennett last edited by

        A lot of Google stuff doesn't validate. In fact - check this:  http://validator.w3.org/check?uri=www.google.com&charset=%28detect+automatically%29&doctype=Inline&group=0

        Strict w3c compliance just isn't top of their list, and I have to say that I'm with them on that.  There is a lot of reason to do it of course. I am not detracting from that and it is definitely a good thing to aim for. However it isn't always critical and sometimes you need to weigh up the benefits against other gains.

        I know that there was a statement/response to this from Google at one point back in history.  I remember that they sited filesize as one example of a benefit that can be gained when you move away from strict compliance.  There are other advantages, but in Google's case I think it is more than it just isn't that important to them. You have to remember that this is the search engine that was originally built by two guys who didn't know HTML :

        “We don’t have a webmaster and I don’t do HTML,” - Sergey Brin

        1 Reply Last reply Reply Quote 1
        • JohnHuynh
          JohnHuynh last edited by

          Thanks for your advice. I may be not try to fix them. It is to be hard to fix

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • Snippet showed in google search is not from metaDescription
            BartonInteractive
            BartonInteractive
            0
            13
            127

          • Search results meta error?
            TimHolmes
            TimHolmes
            0
            6
            50

          • How to rank in Google during domain name search?
            MindlessWizard
            MindlessWizard
            0
            5
            130

          • Need w3c validation error solution
            BlueprintMarketing
            BlueprintMarketing
            0
            4
            5.1k

          • W3C code errors
            JarnoNijzing
            JarnoNijzing
            0
            2
            92

          • Google Custom Search
            JohnHuynh
            JohnHuynh
            0
            3
            157

          • Ajax url returns an error by google. Is there another way besides creating a HTML version?
            SEO5Team
            SEO5Team
            0
            2
            253

          • Title Tag Not Relaying In Google Search
            Thos003
            Thos003
            0
            5
            622

          Get started with Moz Pro!

          Unlock the power of advanced SEO tools and data-driven insights.

          Start my free trial
          Products
          • Moz Pro
          • Moz Local
          • Moz API
          • Moz Data
          • STAT
          • Product Updates
          Moz Solutions
          • SMB Solutions
          • Agency Solutions
          • Enterprise Solutions
          • Digital Marketers
          Free SEO Tools
          • Domain Authority Checker
          • Link Explorer
          • Keyword Explorer
          • Competitive Research
          • Brand Authority Checker
          • Local Citation Checker
          • MozBar Extension
          • MozCast
          Resources
          • Blog
          • SEO Learning Center
          • Help Hub
          • Beginner's Guide to SEO
          • How-to Guides
          • Moz Academy
          • API Docs
          About Moz
          • About
          • Team
          • Careers
          • Contact
          Why Moz
          • Case Studies
          • Testimonials
          Get Involved
          • Become an Affiliate
          • MozCon
          • Webinars
          • Practical Marketer Series
          • MozPod
          Connect with us

          Contact the Help team

          Join our newsletter
          Moz logo
          © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
          • Accessibility
          • Terms of Use
          • Privacy