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
-
Can Google read this code?
I'm working on some basic on-page SEO content for a website within my company and I need some guidance as far as 1. whether Google can read the small amount of existing text (not optimized) and if it isn't spiderable, then 2. what code should be there instead. Here is the site: https://www.le-velgear.com/store/catalog The text I'm referring to is toward the bottom of the page (isn't it always?) and says this: Designed for a Thriving Lifestyle The Le-Vel Gear store is an extension of the LV Life, the Thrive product line, and the world's largest health and wellness Movement, which you helped create. Living a life you deserve includes looking good while showing the world your pride in being a Thriver...Check out all the new and incredible gear and tools and take your Thriving lifestyle to the next level!!! When I "View Source," I cannot see the text, however, the text is highlight-able with my cursor and I can see it when I "Inspect Element" in a container that says Thanks in advance for any help!
On-Page Optimization | | lizzyr0 -
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 -
How do you check if press release images are different enough?
We're helping a Sydney blog called Happy develop their local following and we're starting by ensuring their posts are optimized. They're doing a great job with reviews and content but the one thing we noticed is that all the images they use (because they review music) are from bands and artists that are used tens if not hundreds of times in other places. We're trying to set up a simple way for them to tweak these images to ensure they're crawled and seen as original. Anyone had to deal with this and found a solution that makes sense?
On-Page Optimization | | wearehappymedia0 -
Google Showing H1 Title Instead of Doc Title in Search Results?
I see this often for my website: Google displays my pages' H1 title instead of the document title in its search results. Is there any particular reason for this? Do we have any kind of control on this?
On-Page Optimization | | sbrault740 -
How can i change my landing page title in search engines?
Hi SEO folks, Please help! I've changed my home page title 30 days ago, but my Google search results is still showing the old one! Why is that happening? can I've a brief explanation please so i can learn. thanks a million cRnPa6d
On-Page Optimization | | aptustelecom0 -
Too Many Links On Internal Search Pages
A client has a too many link warning being flagged in SEOmoz. The problem is that most of the pages on the site are lists of tickets for an event etc. Is there a good way to fix the site from having too many links on pages like this http://www.easyseat.com/venue/yankee-stadium-tickets-for-sale.aspx when the user experience requires a long list of links so people can find an event?
On-Page Optimization | | TimFlint0 -
Negatives to using custom sub domain?
So - being photographers, we have our main website, but also, we use a hosted service for all our client galleries (www.zenfolio.com) So, in effect, we have two websites: Our main informational website Our client gallery/proofing website The client gallery has back links to our main website - so, when people are viewing their gallery, they can easily get back to our main site. We also have thrown a few of our preferred keywords in there for SEO purposes. The gallery has thousands of pages which link back to the main site. So.. the client gallery URL can either be: http://ourbusinessname.zenfolio.com OR we can have it so it uses our own domain, such as: http://gallery.ourbusinessname.com The question is, which domain name will benefit the back links more? Our custom subdomain (which links to our main domain) or, using the Zenfolio domain (which is external to our site). Or, is there no real difference either way? Or.. do I make no sense?
On-Page Optimization | | blitzna100 -
Google Sitemap
Does adding a Google Sitemap to webmaster tools REALLY help SEO? If so, are there any resources for help creating one? Here is my site: http://www.petmedicalcenter.com Thanks,
On-Page Optimization | | PMC-312087
Brant0