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
-
How do I rank for a different business categories on google local?
Hello, How do I appear on the local listings for google in different categories or services that I offer? For instance, we're a physical therapy clinic by trade but we specialize in orthopedics, sports medicine, and lower back pain. Thus, how do I rank on google local for these types of services? Currently, we rank for physical therapy but we also miss out on a big part of our business by not ranking for these listings on local. Any help or suggestions would be greatly appreciated. Cheers, Scott
Local Listings | | scottgray06200 -
Does Google prioritise local domains?
I'm in Australia targeting Australian traffic. I often see US domains in the Google SERPS and wonder if that indicates an opportunity for local (Australian) domains to rank?
Local Listings | | Lazeh0 -
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 -
Where have image descriptions gone in Google+
I wish Google wouldn't keep changing things! For a while now, I have been optimizing descriptions for the images that I upload to Google my Business through Google+, since the latest update I can't find where to do this anymore. Has anyone else experienced the same problem? I have tried inputting descriptions into the images themselves through metadata, however Google seems to strip this out when I re-download the image. Perhaps the ability to add a description to these images has now disappeared for good?
Local Listings | | OliverNeely0 -
Google Business - Adding location into business name
Hello, I've a client that has many services in different locations and addresses with the same website and phone number. But the thing is they want me to involve location name to business name. Is there a way to add and verify as bulk ?
Local Listings | | omeryamac0 -
Google not finding my site
I built a website, http://deeprootshgc.com. I submitted the site to google and have set up analytics. When I search for the site, deep roots home and garden center, I get their facebook page, manta and everything but the actual URL. Any thoughts?
Local Listings | | MarkBolin1 -
Why is my location info on google+ correct in one state, but wrong in another?
One search was performed from Oklahoma, and one from California where the business is located. The Google maps data is wrong in CA, but correct in OK. The wrong info is the old business name that closed two years ago. I've written Google twice asking them to remove it from Google Maps, but they write back and say no. http://d.pr/i/KbIN http://d.pr/i/Gce9 Thanks for any input, I appreciate it.
Local Listings | | marshalllj0 -
How can I go beyond the results in the google pack
Hi All: I have a quick question. If you google "plumber" in San Francisco, you get about six options in the pack. After that the results go into very general topics about plumbers. Is there a search method that will allow me to see all of the plumbers in this city 700,000, not just the six Google chose?
Local Listings | | wrconard0