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 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 -
Good service that helps optimize and create citations to google map listing?
Hi guys, Anyone know good service that helps optimize and create citations to google map listing? Also is there recommended WP theme that helps the ranking on google map? Thanks in advance!
Local Listings | | Tariq_Jameel1 -
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 -
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 -
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 -
Google Plus Local - Business address, regions covered/served
Hi If you have a client whose business address is not the same as the regions they serve/cover then how do you set this up correctly in G+? So listing (& preferably website too via the G+ places connection & onpage local address schema) do help local search query listings in the target areas ? Also schema too if possible (i.e. how do you add areas/regions covered if outside of actual business address area) ? Is the only way round this to set up serviced/virtual office addresses in your target market regions ? Surely there's a way to have a business listed in areas outside of its actual address. Its a physical business but is not bricks & mortar beyond the admin office. All Best Dan
Local Listings | | Dan-Lawrence1 -
Google is associating the wrong address with my website in SERPs
I've dealt with submitting address change information to Google (and Yelp, YP, etc.) when they have somehow scraped the wrong address or phone number. This is a little different. I work for the parent company with multiple companies of similar names making up the family of companies. What's happening is that people are searching for one of our companies (Lynden Transport) and getting the correct website results to pop up, but the address/phone # shown below the URL and in the local results screen is for one of our other companies (LTI, Inc.). Customers should be seeing a Fife, WA address but instead are seeing one for Lynden, WA. I've attached a marked up screenshot to better those what is happening. At least customers are generally finding their way to our company but it's causing quite a headache for our customer service reps and customers as they get transferred back and forth on the phone, and confusion for customers unfamiliar with our office locations. I've clicked on the "Send Feedback" link at the bottom of Google and explained what was happening, but beyond that I'm not sure what to do. The information presented isn't wrong, it's just being associated with the wrong company. It seems like a Google logic error and not something I can control or edit. Any ideas? moz-ltia.jpg
Local Listings | | RyanD.0 -
Problem Shooting with Google authorship
The following two photos show the problems that we are having with setting up our Google authorship. What steps would be necessary to correct these errors? abyP0Vg db4ZOgA
Local Listings | | Dynamo-Web0