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
-
I want to remove my business from Google Local Listing Completely
I deleted my business from Google my business (GMB) but it's still showing on Google Local Listing. Kindly, tell me how can I removed completely. I need help?
Local Listings | | Sabar-din1 -
I am having an issue with multiple Google local listings.
We assigned separate numbers for each local listing (using Call Tracking Metrics). However, recently our listings were suspended and when I read through terms of service it says the number has to match on the location page. We use dynamic numbers - so of course that number doesn't show up. Would it work to also add the local number to the page in addition to the dynamic number? Or has anyone figured out a work around?
Local Listings | | vjappleyard0 -
Does Google call your satellite offices and ask what's down the street?
Is this a real thing? Do they actually do this? Should I be concerned and train my receptionists to know their surroundings?
Local Listings | | marketingdepartment.ch6 -
How to have profiles removed from google feature box
I have a client who is a lawyer and used to work at law firm. Since he has opened his own practice. But if I do a search for my clients name a google feature box comes up and says he works for this previous law firm. How do I get this removed. There is no mention of him on the competitors web site.
Local Listings | | donsilvernail1 -
How does Google choose the photo added above a Google+ result?
When I do a brand name search for a client, it pulls their G+ info into the right side bar and it adds three images above the G+ info. One is a photo, one is the Streetview, and one is the Google Maps results. On this particular client, the photo being pulled is from Google Images and not from the G+ page. Their G+ page is verified and has 17 photos in it, none of which are this particular photo. Please advise.
Local Listings | | LocalEnthusiast0 -
Using Hashtag for Google My Business
I was told by a Google My Business representative to include #{keywords} in my description. I was told this would boost my rankings. Has anyone else heard of this?
Local Listings | | Smart_Start0 -
Does anyone know of a Google My Business reporting dashboard that shows impressions and clicks in bulk?
Right now, it appears the only way to access reporting data is by clicking on each individual location and then navigating to insights. We're managing nearly 300 different locations and need a tool that makes it easier to retrieve performance data.
Local Listings | | Deluxe0 -
Change in Google local ranking
So we have a WA construction client that we're working on doing some local SEO stuff. This month all the keywords that we're tracking but one is on the first page. It's easy to say "yay, we're so damn good at what we do", but it seems like there must have been a shift in the way google is ranking local results. Anyone else experiencing this??
Local Listings | | SoleGraphics0