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 - 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 -
Google My Business answers not appearing
We've been trying to use the GMB Q&A feature as a lot of customers seem to be engaging with the listing/asking relevant questions. However, sometimes we answer a question directly from the business listing account but it does not appear (no error message is shown when posting either). When we go to re-post the answer, the text is sometimes still visible in the answer box field. Any ideas what might be causing the issue?
Local Listings | | Wagada1 -
How can I change my Google Business to be a non local business?
Hey guys, Do you know how to change my Google business account to be a non local business? I want my Google Knowledge Graph to be clean and neat like this. Does it mean that this company doesn't claim the business? Will removing the address from the Google My Business solve it (which I don't know whether we can take down the address)? Thanks
Local Listings | | attic0 -
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 -
SEO - Should individual doctors at facility claim a Google My Business profile?
My client is a physician facility with several doctors practicing at the facility. When doing a Google search for some of their practices such as "family practice" one of the doctor's profiles will display in the Google Local pack - however it is not linked to the facility website where their profile exists. As of right now, we are using YEXT and other tools to claim Google Business Profiles for each practice, not the individual doctors. If there are unclaimed accounts for individual doctors, they are alerting Google that it’s a duplicate and should be taken down. Is this the right process to follow for SEO best practices or should we be claiming both the business and individual doctor profiles? The reason they are not claiming individual doctor profiles is to cut down on duplicate reviews as part of the Reputation Management Program. Advice much appreciated!
Local Listings | | chrisvogel0 -
Google My Business
I have a quick question about Google my Business listing. If moving a business to a new location, would all you need to do is edit the listing with the new NAP? The business is verified. Would I need to do anything else? Thanks for your help.
Local Listings | | Kdruckenbrod0 -
Merging Google Place Accounts to Merge Reviews for same Company
Hi Everybody If you have 2 Google Place Listings (Local Listings) 1 with 1 Location and 1 with another Location, is there anyway to merge the 2 Accounts. 1 of them has lots of Reviews and the other contains some Reviews so Ideally there would be 1 Account which merges all Reviews into 1 Account Multiple Locations can then be added into the 1 Account. Any Ideas Thanks Adam
Local Listings | | AMG1000