Errors when checking W3C HTML after added Google Custom Search
-
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!
-
Thanks for your advice. I may be not try to fix them. It is to be hard to fix
-
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
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
How long does Google take to reduce the index size?
A few months ago, we have incorporated our custom search in our website www.ergodotisi.com . We hadn't been paying a lot of attention to our webmaster analytics, to find out a few months later than the Google Index had grown from 2K- 3K pages to one million because it was crawling all combinations of search filters. We have now followed the right instructions to add noindex meta tags and blocked most search result pages from the robot.txt. We allow indexing of some main categories by setting new seo-friendly url structures. A few weeks have passed and the index size has only reduced to 700K. How long does it take before it removes most of the duplicated search result pages from the index? Is it still crawling those pages but has not fully decided to remove most of them? How bad is this for SEO?
On-Page Optimization | | cplastiras840 -
Fetch as Google
Are there any pros or cons with using Google fetch and submit? I realise Google will likely find it of its own accord in due course but I have found it may take a couple of weeks if at all. Fetch and submit seems to speed this process up, sometimes anyway.
On-Page Optimization | | seoman100 -
How do you find out all the keywords Google is ranking you for?
Hello, Is there anyway of finding out all the keywords that Google is currently ranking our website for so that we can then build on those keyword positions? Many thanks,
On-Page Optimization | | mblsolutions0 -
Magento product pages - should they have a .php or .html?
Hi all, I'm using a plugin to do some SEO work on my Magento site It says this is an error: Product pages should have a suitable file type extension such as .php or .html I removed .html when I first set up my store because I though it looked more aesthetically pleasing, but does this have a negative effect on SEO? I can't find much information on this matter in my searches. Can anyone shed any light on this? Thank you, Laura
On-Page Optimization | | llj0 -
Google search: 'define:____'
See: http://screencast.com/t/oFSzIt5rRm Thrilled that Google is pulling our content over wikipedia (in this instance). Wondering how we can assure more success like this. Mike Corso
On-Page Optimization | | Mike_c
Gartner.com1 -
Hiding Legitimate Content From Google Without Penalty?
Hi Around the time of the April/May 2012 penguin update we lost around 40% of traffic and ever since traffic has slowly been reduced to around 50% of what is was from last year from approx 1000 hits a day to under 500. I'm not convinced totally that penguin is to blame as link building has not been overdone especially when other companies who rank first page for "personalised gifts" have 100's of anchor links pointing back to there sites with this term as the link. I think our site may be hit due to accidental keyword stuffing! Basically when an order is placed the product page is updated with the last message to be engraved on the item, so for example if someone buys 10 wine glasses all personalised with "happy birthday mum, happy birthday dad, happy birthday son etc or if customers choose similar engraving then we have lots of combinations of the same words repeated. This information has increased the number of conversions as it gives customers ideas as what to engrave and I don't really want to remove it from the page. Could anyone advise me on what i need to do, is there a way of telling google to ignore this text, a way of hiding without being penalised? Any ideas greatly appreciated!
On-Page Optimization | | SmithyWhiffy0 -
Wrong sitelinks & landing pages in Google
I've recently launched a well-optimized website with good-content category landing pages and then I've added a blog to the website (as supporting content to the landing pages, the only links pointing to the blog are from the category landing pages) What happened is that Google is now using the Blog pages as the site - sitelinks and also as the landing pages for most keywords I only have inbound links to the reg. landing pages and none to the blog, how do I get Google to change that? I know I can demote sitelink URL's in webmaster tools, but would that help me with getting the right sitelinks, it sure wont help much with the landing pages Thanks
On-Page Optimization | | Plorex
-J0 -
Information being added before meta description
On the search engine results page I am finding that information has been added before my meta description - this is only a recent flaw and I've no idea how it can be caused. It is happening in the same format as you see dates sometimes before meta descriptions. This is what is actually being shown on the search engine results page. I am getting this text - Product 1 - 15 of 18 – then my meta description after that. The words 'Product 1 - 15 of 18' is in the heading at the top of the page but it is in no way interacting with the meta description. It looks like Google is confusing the words 'Product 1 - 15 of 18' with a date possibly. Any suggestions.
On-Page Optimization | | serp3600