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
-
Incorrect Image is Displaying on Google My Business Knowledge Graph - Need Urgent Solution??
Incorrect Image is Displaying on Google My Business for our company. We have updated new image on google business But still, Google is fetching and showing old image on the google my business knowledge panel. What will be the right fix for this? Our site URL : www.yolobus.in
Local Listings | | AnkitS.19900 -
Google My Business - Service Area - Use Zip Codes or City Names?
Google allows you to choose up to 20 locations as service areas, and you can choose based on cities, counties, or zip codes. I'm trying to determine if zip codes, cities, or counties are better to select for our GMB profiles. We are located in the US. I am thinking it's best to use all 20 areas allowed on a profile as long as they are relevant, generally giving Google all the info they will let you provide is best. I also am leaning toward using zip codes because it also includes the city when you choose by zip code. For example: Entered the zip code 21009 and the service area selection provided was: Abingdon, MD 21009, USA Entering the city/state returns a selection of Abingdon, MD, USA I also think it may have to do with how people search and find your business as well? Does anyone have experience with this? Best practices? My google searching has not turned up any reliable info.
Local Listings | | WadeBayMgmt0 -
Unlinking Google Local Listing from your GMB Account with other locations you have
I have listings that I need disconnected from my main Google My Business account. I can close, or remove which is similar as closing, but the goal is not to close the listings, just to remove the association to my google account, and im not transferring the listing as well. Anyone know how to accomplish this? Goal is to clean up old listings that are exist but I dont manage Thanks for all the help
Local Listings | | vmialik0 -
Bad Google Reviews - Should I Remove the Map From My Website?
I have a Google map on a website. Currently, there are only two 1-star reviews — which show next to the company name on the map. We added the map for local SEO reasons, but I’m thinking I should take it down because customer experience supersedes local SEO. Why boost search rankings if the content will drive people away from converting? So basically, customer experience > local SEO. Question: Do you all agree, or do any of you have any evidence that I should leave it? For example, it’s below the fold, so it isn’t the first thing they see, and we really need to boost their local SEO.
Local Listings | | BlueCorona1 -
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 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 -
How does Google Local Insights report impressions for multiple mappack listings (same company) showing up for one query?
I had a client ask me a difficult question about impression reporting via Google Local Insights. Lets say a client is a popular ice cream chain and somebody does a local brand search for "San Francisco Exotic Tasty Ice" and three locations for the same company all show up in the Google Local Pack. Does each one of these locations receive their own impression via Google Local Insights? Or does Google just count this as one impression for one location altogether? Logically speaking I would think that each location would get its own impression in the insights report. However I'm wondering if there is anything to negate that. Any feedback is appreciated.
Local Listings | | RosemaryB0 -
Can We Outrank The Google Places Local Listing 7 pack in 2015?
Hello everyone, I would like to know if it's possible and if any of you had success outranking / ranking above the Google Local Listing 7 pack? I am in Canada and every time I search for something like (city+dentist) (toronto dentist) I do not see any organic result above the 7 pack. I searched for like 10 city and every searches the local listing are the first to show up and the organic result under it. So I did not see any organic result outranking the Google Places and I look at like 10 different city if not more. So I would like to know If i can rank above them for organic results with no Google places, with no physical address, local phone number and/or citations even if there is currently no organic result showing up above them ? What do you guys think ? Thank You
Local Listings | | majesticlub1