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 - two businesses, same location
I have client that has developed a new brand targeting a specific segment of their wider market - the more price sensitive customer. They have launched a website for this brand, which specialises in promoting special offers. Both operations have the same physical address and the new brand - that targets this niche, I believe has been set up as a service-area business on Google My Business. I think they should change this as they do publish their address on their website and do on occasion welcome customers on their premises. My question - at last! - is that can both businesses exist on Google Maps - with the same business address and is this the right way to proceed if I want to target directory listings for the new brand. Any thoughts welcomed! thanks.
Local Listings | | nathangdavidson21 -
Does Google Penalize for Hiding Address?
I have a situation where a client is working out of their home. I know that Google does not like when you list a business with a home address so we have hidden the address on Google, but are wondering if Google penalizes businesses for hiding it? When listing them to other directories we do our best to find ones that we can hide the first line of the address. But does that matter? Should we just be listing to our normal directories with the address visible? Does a mix of hidden addresses and visible ones hurt your rankings? Thanks in advance for your help!
Local Listings | | JohnWeb120 -
How do I get a photos to display next to my Google Maps results in the SERP?
Why do photos show up next to the map in the Google Maps display on the SERP, while sometimes it doesn't. Am I missing something as far as a setting or place to upload the image or is it something that Google auto-populates?
Local Listings | | Gauge1230 -
How can I add another Google Places listing to my existing business?
Hey there, Does anyone know how I can add another Google Places listing to the following account? The company now has two stores so I'd like to get both listed. https://plus.google.com/u/0/b/107389046695957843430/+FinsahomeCoUk/posts I've tried using https://www.google.com/local/manage but that only appears to let you add a minimum of 10 locations?
Local Listings | | Webrevolve0 -
Wrong Category Displaying Google Business Page?
Our firm keeps displaying "bankruptcy attorney" on google business page. Granted, we do that, as well as a variety of other services, but our primary category is "Personal Injury Attorney". I was told the categories are randomly selected, but I don't think that's true. Every time I've looked (or had other people look for us) on local, it displays as "bankruptcy attorney." What should I do? Is there a way to lock in the "Personal Injury Attorney" category, so it's the one that displays? Should I get rid of all the other categories except for "personal injury attorney?" Any other suggestion? Thanks, Ruben
Local Listings | | KempRugeLawGroup0 -
Help with Google Places, local listings & Google+ please!
Hi all, I work for enterprise app development & mobile consultancy, Mubaloo. I recently asked a question around getting better rankings for London-based search results. One answer was to set up a local listing for Mubaloo's London office. I thought I had done by setting up our London office up on Places for Business - is this the same as a local listing? In addition to this, I can't connect our existing Google+ page to our local Mubaloo Bristol & London listings as Google has created separate pages for each! Is anyone else having this issue? Can it be resolved?
Local Listings | | donaldsze0 -
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 -
Local Listings SEO: Which multi-location retailers are doing a super job with local listings? I'm also interested in finding retailers who are using schema.org microdata format to structure their store-level data.
Do you know of any enterprise level restaurant or retail chains that are doing a great job with their local listings content? Just looking for some links/examples of best practice executions. Also, I'm very interested in finding retailers or other multi-location businesses that are using schema.org microdata format to structure their local store location data.
Local Listings | | SeeMore2