Phone number Schema that Google WMT blog talked about this week throwing HTML Validation error
-
My code looks like this:
The HTML validation errors are these:
Attribute contacttype not allowed on element span at this point.
Attribute areaserved not allowed on element span at this point.
Attribute contactoption not allowed on element span at this point.
Attribute availablelanguage not allowed on element span at this point.Have I misread how to implement this schema or is html validation not up to speed and I should ignore for now?
Thanks!
-
Thanks for double checking for me. I appreciate it!
-
The rich snippet testing tool looks to show valid schema markup on the page you sent and the sample link I sent passed html5 validation. At this point looks like certain parts of the schema markup are not recognized by the validator. Good to know this is the case, thanks for sharing the link.
-
This page has the schema on the phone numbers in the top right and in the footer: http://m.mexpro.com/
-
Well the document in question needs to be formatted in HTML5, otherwise it will not validate correctly. So if you run an HTML4 or XHTML page through the HTML5 validator it will not pass. You can also check here to see if the structured data is implemented correctly. Are you able to provide an example of the page you are trying to validate?
-
I am positive I check with html4. I put the code in here so.... not sure what is up...Could the code put in for mobile look like it's in there twice and not validate?
-
Hello,
Are you sure you checked the HTML5 spec? This seems to validate for me and is only basic html5 with schema markup. It's possible you have not marked up the code properly. Google provides some examples to assist with this. I believe you need to do the full markup too, not just certain parts. Hope that helps.
-
It does not validate for html5, but thanks for your input.
-
Hello,
I believe it is valid under the HTML5 doctype, but not others. If you try and validate it under that doctype it clears validation. Generally I think you can ignore this issue for now as shouldn't cause any issues if it does not validate.
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
-
Fighting spam on Google Maps
"Suggest an edit" on Google Maps works occasionally and so does Google's Redressal Form. Sending a DM to @GoogleMyBiz on Twitter does too. But it seems like the vast majority of spammy businesses that I report, go unnoticed by Google. I'd really appreciate hearing from some other SEOs on how they remove crap from the map, with better results. Thanks.
Local Listings | | Jason_Taylor0 -
Does Google prioritise local domains?
I'm in Australia targeting Australian traffic. I often see US domains in the Google SERPS and wonder if that indicates an opportunity for local (Australian) domains to rank?
Local Listings | | Lazeh0 -
Google Map Penalty or Odd Filter? Listing Goes Missing
Hello Moz. We have a law firm client who practices criminal defense law. Historically, he has been ranked for _years _in the map pack and first page of search for a variety of phrases. This is a law firm with twice the number of reviews of the next competitor, solid back links, and open 24 hours a day. Over the past 30 days, he now appears inconsistently in the map packs. Sometimes he is in the C slot and sometimes he does not appear at all. Most of the time he is not listed for specific legal phrases for DUI, DWI and criminal defense. When he is not listed in the A, B, or C slot, then he is actually gone completely. You click on More Places and his listing for the map is just completely gone. You can scroll down from listing 1 through 20+ and not find his firm in the Map listings. You would think he would just be further down on the list at 5 - 10. But it is just missing. However, when you change the filters for either rating or reviews, he suddenly will appear. In fact, he will be near the top of the list, but only on filtering. You can even clear the filter and he stays listed in typically the C slot too. However, if you refresh the page, he is gone again. My question is simple: Do you think there is some type of data issue or penalty in place? Or is this just how the filters work - suddenly showing a list that should appear in the main area. PS: If I am not clear on the above, I can send video evidence of this oddity.
Local Listings | | peteboyd0 -
Disadvantages to Hiding Business Address on Google Places?
From a Local SEO standpoint, wouldn't hiding a business address on Google Places for Business create an SEO disadvantage in that I would expect in the local portion of the search results, there would be a bias to showing businesses that have not hidden their address as then you can place a pin on the map at the location? Or from a Local SEO standpoint does it not matter if you hide your address or not?
Local Listings | | Jazee1 -
Google Crowsourcing Missing Places
You may already have seen this in the past week or so, but it's new to me! Check out this screenshot from the bottom of the Local Finder for a search for 'electricians houston': http://screencast.com/t/NKW3KuxIuPo I saw this first referenced by Issac Hammelburger at Phil Rozek's G+ Community and see this as yet another Googl-ish thing to do, crowdsourcing data. They are trying to make it easier to add GMB listings, undoubtedly for owners who have never heard of Google My Business, but I've not yet tried the feature out. If you click on the ADD A MISSING PLACE link, you'll be able to input core data about a business. There's also a link to claim the business present. Has anyone here in our super Local SEO community tried to add a business via this new feature? Are you seeing it in a lot of local finders? What do you think of it?
Local Listings | | MiriamEllis3 -
How do you select a Google category for the SERPs?
Recently I was looking up law schools in Texas and came across a SERP listing I had never seen before. Google provided the category "law school" and narrowed it down by geographic location. I checked the code on both websites for schema and was unable to locate it. Furthermore, one GMB listing was claimed and another was not. I'm wondering why both Texas A&M School of Law and Houston College of Law showed up but University of Texas Law School did not. I have attached a screenshot of the SERP to see if anyone has seen this before or can provide any insight. Search term was "list of law schools in texas" but the same snippet showed up for "best law schools in texas." Thanks 8XHvZt4.png
Local Listings | | DigitalMarketingSEO0 -
NAP question and Google local.
Hello, My client has successfully grown one of their event venues locally (lets call it venue A) and on the back of that bought two more venues (B & C). Then created an umbrella company to manage all three. He now wants to market the umbrella company and so redirected the original successful venue domain (A) to the new umbrella company domain. The umbrella company is located at the same address as the original venue A. So it shares the same address, phone number, website as venue A but a different name. All this done before me. He has a Google local page for the original venue - venue A- and changed the domain on it to the new one. He also has Google local pages for the other two venue locations. But doesn't have a Google local page for the umbrella company. Now he finds rankings are down. Looking around I can see that his citations are all based on the original successful venue name A - but he has changed the website URL on many of the citations to the new domain.So a bit of a mess as we have a mixture of addresses, same phone number for all 4 , different business names for all 4, same website for all 4. If all the venues plus the umbrella company are in the same city, but have different names and addresses but the same phone number (for bookings) and web address, are they allowed a Google local page each? I suggest just having a Google local page for the umbrella company and remove the others as they are not actually separate businesses although they do have different addresses. But unsure if this is correct or necessary. Not sure how to progress with this one and any help appreciated?
Local Listings | | AL123al0 -
Google Plus Business (How to replicate categories from Places)- Advanced
I'm very familiar with local promotion. However, I work in some fairly competitive local markets and in most cases only a few dominant keywords are necessary for the client to perform well. With new clients who aren't grandfathered into the old places interface, I cannot setup custom categories. This is known to everyone, but what I would REALLY appreciate is if someone could explain how I can at least to some degree replicate that targeting? To put it in perspective, for the standard categories (through Google Plus Business) my client rank very well; thus you can assume the client's local strength is solid; but when it comes to the few specific terms I need, I can't see to replicate the effect. Please help... anyone! 🙂
Local Listings | | mgordon0