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
-
Two Google My Business accounts for two companies at same address
I have a client (flat roofing) with two registered businesses both of which are based from the same address, upon trying to create a new GMB account for the second business, it was immediately suspended by Google. So somewhat unsurprisingly one address one business, but is there a way around this?
Local Listings | | Donsimong0 -
Why is a Google Listing Showing Up in a Different Town Than Its Address?
I have a client who runs a dental office on the outskirts of Racine, WI. His address specifically shows up as being in Racine, however, his GMB profile has always showed with the category of "Dentist in Mount Pleasant, WI" displaying below the photos. (Mount Pleasant is the next town over and his office straddles the line between the two towns in Google's overlay map of the town.) Obviously this is frustrating and I'm concerned that his location is hurting his ability to rank in the larger, more populous town of Racine. Have any other SEOs ever encountered this? And if so, how have you approached the issue? Location pages? Mentions of the location more often on the pages? tsLvH2B
Local Listings | | formandfunctionagency1 -
Seasonal Setting Options for Google My Business
Hi there, Not sure if anyone will have any insight but I have a seasonal business that I am closed for from September to March. I don't want to mark my business as "permanently closed" through Google My Business as I don't want my customers to think I've gone out of business. I've seen a few times through forums that you can change your business to temporarily closed, but I can't find the specifics on how to do this. Any insight, suggestion or resources would be great! Thanks!
Local Listings | | MainstreamMktg1 -
Google My Business Multiple Listing
Can a specialist doctor who operates out of several locations have multiple GMB listings? She operates under her company brand name if that makes a difference. Thank you community!
Local Listings | | Crystal.w0 -
How to create a 2nd Google listing for the same brand
Hi All, We have an office in Berkeley CA which has a Google listing. Now we have launched a new office in Hayward CA and we're thinking of how exactly we should create the new Google listing for the office: Create a new google account and submit the page URL in it? Create a new Google account under our Berkeley google account. i.e. to have both under the same account in Google Thanks, Tomer
Local Listings | | OrendaLtd0 -
Google Places: Can't link to website
Hi, how are you? I'm Having some problems with my clients Google Places/Plus listings. Everything is OK, but I can't get my website linked. I'm talking about what I point out in the image. I tried following this instructions: https://support.google.com/plus/answer/1713826?hl=en&ref_topic=3052532, but I can't find the Link website button next to my website URL. Do you know why is this happening? Thanks! 6v1eDG4
Local Listings | | arielbortz0 -
Google Places for Business was removed after 6 months
Hello Everyone, After 6 Months, Google has removed us from Google Places for Business and Maps. We did everything properly and we where serving on the 3rd position. Now it seems that the listing is back in Pending? 1. Does anybody have any suggestions how to proceed or how to handle this?
Local Listings | | EVERWORLD.ENTERTAIMENT
2. Can we use places listings again using the same Address?
3. How long will it take to process again?
4. We also heard that some one might of complained?? Your help is much needed. Thanks0 -
Google+ Business Listings: Hours Displayed Incorrectly
Hi, When I do a search for our brand + location name (basically making sure we at least appear for that) the hours displayed are incorrect except when I log into our account to edit the hours they are right. Ex: Google SERP displays hours 8am - 11pm but within business listing account hours entered are 8pm - 10pm. Has anyone come across this and why would it be? Is it a case of other citations showing the incorrect hours? Thanks for your help WMCA
Local Listings | | WMCA0