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 search results for multiple listings
I am wondering how people set up their Google My Business listings to appear in the search results similar to this business, Hulme Orthodontics. I attached an image below that'll give more details. I am working with a client that has two locations similar in distance to Hulme Orthodontics, and I have tried everything and have come up with no answers as to how I can properly get Google to format the search results in this way. I assume that there is no actual way to manage this and that Google decides this on their own. However, if anyone has any insight regarding this manner, that would be much appreciated! Thank you for your help! UsEr3rK
Local Listings | | DylMar1 -
Has anyone tried using AMP links in Google Business Listings?
We have a client with multiple locations, and Google Business listings for each location. We've also created AMP pages for each of those location landing pages, and they're ranking on page one of their main queries, just below the local pack. We're wondering if anyone has tried pointing a GMB website listing at an AMP page, or if there are considerations to keep in mind before testing it out. So far, we've discussed whether to use the AMP url (amp.domain.com) or the Google viewer url (google.com/amp/s/amp.domain.com), and potential concerns for desktop users.
Local Listings | | WompM0 -
How will changing the phone number on my website affect SEO?
We are considering changing the phone number to our website to one of those 1-800-eat-cows. How will changing a phone number we've had 10 years affect our SEO. Do we need to change all citations, Google maps, etc etc? What if we don't? Thanks!
Local Listings | | RoxBrock0 -
How do I treat multiple buildings on the same college campus on Google for local SEO?
Should I delete them? Simply give them a different address like "City, State, Zip"? I see the benefit of having key buildings on campus in Google Maps, but I don't want those to affect my accuracy score and, thus, my local rankings for SEO.
Local Listings | | GabeGibitz1 -
How to tell Google My Business what area is local to my company?
Hello Mozers I've been stumped by the changes in the interface with Google My Business. I used to be able to set up the area for which I wanted a business to cover. Now I can't find anyway to tell Google. The company I work for is in St Albans and our main workload is London. It would be helpful if I could actually control what Google Local sees as Local for my company, i.e. to encompass central London which is only 19 miles away. Can someone give me an idiots guide has to how to tell Google the area I'd like our local listing to cover? Thanks
Local Listings | | Catherine_Selectaglaze0 -
Why would a website link disappear from a Google Place listing?
Hi, a local non-profit recently re-branded their name from MacDonald Center to Maybelle Center. When they updated their business information their website link disappeared. They've updated from within and dashboard to no avail. We've requested edits/updates via Google Map maker but it says Denied. Here's a URL for the SERP result. Note the button for "website" would normally appear by the button for "directions" https://www.google.com/search?sourceid=chrome-psyapi2&ion=1&espv=2&ie=UTF-8&q=maybelle center portland&oq=maybelle center portland&aqs=chrome..69i57j69i59j69i61.4316j0j7 Can someone please explain why this is happening and how we can fix it? They are a great community organization who's about to receive some media coverage and we'd really appreciate it if users hearing about the group be able to easily access their new website. They are aware of their duplicate listings but, typical of non-profits, have limited time and funds so are prioritizing to address more urgent issues first. However, I don't believe duplicate listings would cause such an issue but please let me know if I'm wrong here
Local Listings | | Flock.Media0 -
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 -
Different phone numbers in local listings
We are setting up Google My Business for a client who has multiple locations around the country. They use different phone numbers to track enquiries from different sources - Yell, Google+, Direct Web Traffic, PPC etc. Therefore the phone numbers can be different between Google My Business and local listings. How much does/would this affect the Local listing? It may appear that Google is penalising for businesses try to understand their customers and where they come from!
Local Listings | | Astute-Media0