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
-
Unlinking Google Local Listing from your GMB Account with other locations you have
I have listings that I need disconnected from my main Google My Business account. I can close, or remove which is similar as closing, but the goal is not to close the listings, just to remove the association to my google account, and im not transferring the listing as well. Anyone know how to accomplish this? Goal is to clean up old listings that are exist but I dont manage Thanks for all the help
Local Listings | | vmialik0 -
Former tenant Google Map listing still displays
Our tenant closed their business and we now occupy the address, their Google map still displays, albeit "Permanently Closed" along with ours at the same address. I can't seem to get it removed, it's been 2 years. Help 🙂
Local Listings | | KevnJr0 -
Google business spam query
Hello Our Business is Verified Business Listing in google, as of Everything ok, But there are around 6-7 other company Who Registered Our website as there website, so my question is How should we make them spam & make Our website verified With Our main Location only, How to make Our business Listing Secure, please Guide as, to help Resolve this issue, Thnx in advance
Local Listings | | falguni-iepl0 -
How to Have Multiple Listings appear on Google maps
Hi my client has two locations for his restaurants: Me Gusta Tacos He wants to have both his locations show up in the map pack, which they currently do when you type in Restaurants, Dinner, food near me etc... However, when you google Me Gusta Tacos the Google listing shows up on the right for one of his locations, but there isn't a Map Pack for his two locations. I wasn't sure if a map pack only shows up when there are 3 or more locations, for instance, a chipotle which I added an image below to compare too. HGOgln5 Jgdoi4Y
Local Listings | | Sociable_Bistro0 -
HELP! Google Local dropped!
I noticed that my Google Local page does not show in any search results anymore. Looking at Moz Local, it appears that I had 250 views on August 30th and 0 after that. It just dropped overnight. I looked at Google My Business and I noticed that I had a duplicate listing (no idea where it came from). It wasn't verified though. I deleted that. I also noticed that my address has been changed to Drive instead Dr. I was very careful in making it the same everywhere, but it changed without me changing it. Perhaps someone so kindly "suggested an edit" and I didn't see that happen. Anyone have any ideas. My organic search ranking is still strong. #3 for most search terms. And we have a very strong Google Local reviews. I mean, it even shows business that have been permanently closed over me!!! And we have photos, great reviews, and regularly post to Google+. I seriously need some help. I am a small business owner that does all of my own SEO because I can't afford a good SEO. 😞
Local Listings | | CalicoKitty20000 -
Does Google Analytics automatically desseminate Maps/Places traffic from Organic traffic? Do webmasters still have to apply UTM parameter tracking to URLS in their GMB profile listings?
It was recommended a few years to apply UTM parameters to local URLs to get more accurate referral/source tracking in Google Analytics. Here is an old Moz post about this process https://moz.com/blog/tracking-traffic-from-google-places-in-google-analytics However does GA automatically separate this traffic out nowadays? Is there a method to identify the traffic coming from Maps/Places without UTM parameters? Is UTM tagging still necessary if we want to see these traffic reports?
Local Listings | | RosemaryB0 -
NPA. Adding two new locations. What phone numbers to use?
Hi everyone, Our client wants to add two new locations. Not sure what phone number to use.
Local Listings | | Ryan_V
We have main phone 800 number, with no adders associated, and local phone numbers for locations which we do SEO for. New two locations are not for SEO purposes. Client just want them to be listed on website and on major directories for now. Understanding NPA importance:
Should we use main 800 for both locations?
Should we get new phone numbers for each one? Thanks0 -
Two businesses - using separate suite numbers
I have a client that has an office in a particular suite (Suite 101) at a local address. They rent the space so they cannot just add another suite number. They are going to have two websites for two different businesses run from the same location. They will have separate local phone numbers for each business. Is it too much of a stretch for them to show one as "Suite 101-A" and the other as "Suite 101-B" for their local pages? One of the businesses is very new with few citations at this point. The other has not started up yet, so we have better control of the citations that will be created. I've seen similar questions posted, but not one that addresses this specific issue. Thanks for any advice!
Local Listings | | wcksmith10