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 Issue
I have seen an issue with GMB that Google Support say is not an issue. I work for an agency and we manage about 50-60 GMB accounts for our clients. Most of our clients are flooring retailers and under our MCC account we also have our agencies listing. When I was searching for my client on Google using their brand name for example Walmart, I noticed my agency listing shows even though my client is over 1000 miles away. I have used multiple browsers in incognito and multiple devices and still see this so I know its not a personalized result. We also link to this client from our website which is the only thing connecting the dots between my agency and the client. https://imgur.com/UEqNAyA - screenshot (hiding phone numbers & business names for obvious reasons) showing 2 locations over 1000 miles apart. My first attempt at contacting Google I was informed of ways to get my listing higher which I quickly told them that isn't my issue. I also asked to speak to a SME (subject matter expert) and was told all of them were on lunch, asked for a supervisor and was told they were too on lunch. Has anyone else experienced this? Any idea why it would show two different companies over 1000 miles apart when searching for a companies name? Did I stumble a way for SEO's to cheat the local map pack?
Local Listings | | Jacob-Lial1 -
Google Events Pack - Our events never show up while others not related do
When doing a search for "des moines wa events" the top results are the events pack. When we do a search, none of the events are even happening in Des Monies but in Seattle proper. Our pages have events schema on them and they do get warnings but no errors. Here is a link to one of our events pages in Des Moines that does not show up. Is there anything wrong with our page that could be preventing it from ranking? What are the factors that get events to rank in that area? What else could we be doing to improve our results?
Local Listings | | GRDigital0 -
Google My Business Login
Is there a way to turn off the Google Security feature that kicks someone out after logging into the account because it isn't a trusted computer or in a different location?
Local Listings | | BlairKuhnen0 -
Ranking for a service website that offers to a large geographic region. Micro sites, one site, google ads, etc?
Hi there I currently have a client that has a service that offers to a wide metropolitan geographic region. Currently we offer location detection when they hit the site. I'm curious what the best method going forward would be. This client is coming from a PPC initially but I've sold them on a longer term goal with organic SEO (local) . So my question is what is the best method for ground up web creation when offering a service that services multiple areas within the same metropolitan region? Bonus questions anyone using Flat CMS's?
Local Listings | | swagseo1 -
SEO Google local listings
Hello We've recently started a campaign for a local business, and now the domain authority and the number of links to the site are equal if not more to all local major competitors (bar one) and organic rankings for relevant terms are increasing well... However we still do not appear in the google local listings, despite having a verified location business account - fully set up and active and linked to the website. Does anyone have any advice for increasing local rankings? Thanks in advance kind mozzers
Local Listings | | wearehappymedia0 -
Can we place a FB business page link instead of direct domain link in a Google My Business listing?
A client of ours asked if we could place link to their local Facebook page instead of a link to the direct domain in their Google My Business listing. Will Google allow this?
Local Listings | | RosemaryB0 -
Google Reviews From Around The Web Feature Gone
Hey All My Favorite Local Community Members! I think we might start having questions come up about this, so I thought I'd do a quick post. Google has just confirmed that they have removed the 'Reviews from Around the Web' feature that has so long been a part of their local SERPs display. Mike Blumenthal confirms that this is official, here: http://localu.org/blog/google-more-reviews-links-removed-from-knowledge-panel/ Apparently, you can still see your reviews from around the web in your Google My Business dashboard, but they are gone from knowledge panels, etc. This may not be a feature greatly missed by many, as the business owner had so little control over what was displayed in this section. So ... upshot is: if you've just noticed that this feature is gone, it's official - it's gone.
Local Listings | | MiriamEllis4 -
Google Maps Help
Hello, I'm helping 2 clients with Google Maps Client 1
Local Listings | | ogdcorp
Has 4 Locations, I claimed all 4 but when searching his name only 3 are showing up on the first page.
All 4 show up when clicking on "More results" Client 2
Has 3 Locations, all of them were claimed by another company 1 year ago. But now I cant re-claim them unless the other company releases them but that wont be easy. Any suggestions? Also, when dealing with multiple locations is it better to have 1 email address for all or 1 email for each? Thanks0