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 to add details to Google Local Listings
Hello, A website I am working on made it to Google's Local Pack. However, it does not have the website, hours, or location info. What is the best way to add it? I added an image link for context. http://imgur.com/rT3lQ4K Thanks!!
Local Listings | | HectorCortes0 -
Will using call tracking phone numbers in paid legal directories listing negatively affect our website?
I know it is important to have consistent NAP across directory listings but I would like to gauge the ROI on the paid "premium" listings in legal directories like FindLaw, AVVO and Lawyers.com by using call tracking and recording. Could using different phone #'s in these listings affect our website negatively? Same question for YELP ads (ads only, not organic yelp listing).
Local Listings | | SEO4leagalPA0 -
Local Help! Google+ Accounts for New Brand & Service Sites
Hi Mozzers! I have a lot of knowledge in local search, G+ page setup/optimization, etc, etc... However, I'm about to begin a business based around "home services". The brand will be ABC Home Services as the umbrella. Then under it will be the individual services like "ABC Carpet Cleaning" "ABC Roofing", etc... Each service will have it's own website for optimization purposes and local search authority building as well as the services will be developed over the course of a couple years ie: carpet cleaning would go up 1st, then the next service and so on... I have purchased all of the domains I want for the services to focus on. What do you recommend I do in terms of setting up Gmail accounts/G+ accounts? Individual service related Gmail accounts and have a main "ABC Home Services" Google account and then add in the service G+ pages over time? I'm open to any questions, but trying to make this the most efficient for me and my team and also the best if can be for local optimization goals and criteria. Thank you! - Patrick
Local Listings | | WhiteboardCreations0 -
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 -
Higher Value: Google Local Listing or .edu link?
A client of mine is putting together a partnership with a local university to offer a certain type of medical test through several of its clinics. They are writing up the contract now and asked me if there is anything they should ask for that would benefit us in our listings. Since we do not have an actual local footprint, my first inclination was to ask for them to help us get verified as owners of "practitioner" local listings at their business addresses (as discussed here). We would provide local numbers that would ring our call center. My thinking is that these listings and backlinks would benefit on searches similar to "medical testing in San Antonio". I have a number of concerns with this track but would love to hear from the community on why or why not this might be the way to go. Another potential option is to ask for a link from the university's website outlining the partnership. Something along the lines of "Our labs have partnered with BIZNAME to provide medical testing in San Antonio to our valued patients." I'd obviously love the EDU links, but I'm hesitant after Overstock's penalty a few years ago to try to set something like that up. I'm not sure which (if either) to ask for in the contract. I'm leaning toward the latter since it seems more in line with a long term strategy, and Google seems to change their treatment of the local listings pretty frequently. However, getting that high visibility real estate in the local listings is really appealing to me. What does everyone think?
Local Listings | | Andrew_Mac0 -
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 to remove a former business location from Google Places?
I've received a strange response from Google Places on local listings for a home builder. Google's rep suggested that we not list the new home sales center (a model home) since at some point it will change from being a business listing to a residential listing. That is just wrong. It will be a place of business for the next 3 years and then will flip to being a private residence. These days it is uncommon, but not that rare to turn over ownership from public to private or vice versa (A residence becoming a law or other commercial establishment. Or a whole office building becoming condos.) The issue is, when it does happen, how do we get Google and others to recognize that a business is no longer a business location? I've had trouble bringing down the address of former former model home sales centers on Google Places much to the chagrin of the residents.
Local Listings | | BlairKuhnen0 -
How to get a verification tick next to the URL in a Google Plus Local page?
Google Plus Local: https://plus.google.com/+PrestedHallFeering Website: www.prested.co.uk So how do I get the verification tick next to the URL on this businesses Google page? Also, even though the website is much strong then those in the map listings for Wedding Venues In Essex, whats preventing this website from appearing in there? My local optimisation knowledge is poor!
Local Listings | | jasondexter0