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
-
Google Events Pack - Our events never show up while others not related do
When doing a search for "des moines wa events" the top results are the events pack. When we do a search, none of the events are even happening in Des Monies but in Seattle proper. Our pages have events schema on them and they do get warnings but no errors. Here is a link to one of our events pages in Des Moines that does not show up. Is there anything wrong with our page that could be preventing it from ranking? What are the factors that get events to rank in that area? What else could we be doing to improve our results?
Local Listings | | GRDigital0 -
Tracking Phone Numbers in Google My Business Listings and Beyond
Hey all, Wanted to run something by you. I am getting pressed to use tracking phone numbers for all of our GMB pages for over 100 locations across the country. Has anyone done this for their own listings or for their clients? Because I will have to do it for GMB, this means I will be sending these same phone numbers out to the other major directories and data sources around the web. The phone numbers do contain the local area code for each city and do directly connect our customers to their specific location without any kind of redirecting. How is Google looking at this? I have read before it is a no-no but have also read it is not a big deal. Any thoughts would be much appreciated! -Ben
Local Listings | | Davey_Tree0 -
New Google My Business - No more Google+?
I created and verified a new Google My Business page for a client and found that there won't be any more Google+ created automatically. I spoke to Google Support and they confirmed this is the case because apparently, the two Google products confuse people. Now, if we want a G+ page created for our client, we have to go and 'Apply' for one here - https://plus.google.com/create We're not sure how to go moving forward with new clients. Has anyone tried to apply for a G+ account successfully using the above link? If we create a new Gmail account, don't we get a G+ account anyway (or is that not the case as well)?
Local Listings | | nhhernandez0 -
How to create a filter view to view local search traffic in google analytics ?
Id like to be able to drill down into the local search traffic for a site in google analytics, i know i can get some analytics data via google's local places dashboard, but id like to see a more detailed chart in google analytics. I read this article and installed this filtered view dashboard from Local U, but it seems its stopped working since it was originally published back in July 13. Is there a more up to date method for capturing this data ?
Local Listings | | jpeg800 -
Google My Business: Multiple businesses operating from same address
Hi guys, This seems to be quite common (especially now with "hotdesking" becoming increasingly popular), but I've never had to do local SEO for a business like this before so was just wondering on best practice for a business who shares the same brick-and-mortar location with multiple other businesses. For Google My Business verification, it does seem you just have to get there first. With Google unverifying the first account tied to that address if you attempt to verify another - I don't want to do this, due to the relationship between my client and the verified business in question. Any suggestions?
Local Listings | | Ria_1 -
Is there a purpose to the "google my business" description?
Hi there Can someone tell me if the description serves a purpose in the google my business profile since:
Local Listings | | coolhandluc
a) It is not displayed anywhere as far as i have seen (maps, 3 pack local results, knowledge graph, organic results)
b) It is no longer considered as a ranking factor since it was abused so much Thanks0 -
Correlation between ranking on Google organic result page and ranking on the local listing
Hi Moz fans, A quick question: any correlation between ranking on Google organic result page and ranking on the local listing or vise versa? Thnx Saab
Local Listings | | S.Saab0 -
Does embedding Google map help local SEO?
Hi I am curious if adding a embedded Google map to a footer helps for Local seo? Thank you
Local Listings | | Berner1