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 -Choosing Multiple Categories
Hi friends, I'm trying to work out what would the practice be for a business who is operating in different categories in terms of displaying those categories in Google My Business account. We have a client who is supplying both catering and cleaning products (both categories are core). In this case, listing those two categories in GMB would be alright or should I expect a negative impact on results related to both categories as we have chosen multiple categories? Any advice would be appreciated greatly!
Local Listings | | bbop331 -
Tracking Phone Numbers in Google My Business Listings and Beyond
Hey all, Wanted to run something by you. I am getting pressed to use tracking phone numbers for all of our GMB pages for over 100 locations across the country. Has anyone done this for their own listings or for their clients? Because I will have to do it for GMB, this means I will be sending these same phone numbers out to the other major directories and data sources around the web. The phone numbers do contain the local area code for each city and do directly connect our customers to their specific location without any kind of redirecting. How is Google looking at this? I have read before it is a no-no but have also read it is not a big deal. Any thoughts would be much appreciated! -Ben
Local Listings | | Davey_Tree0 -
What is the real impact of schemas
What is the real impact of schema?
Local Listings | | Roman-Delcarmen
I have been working in a project, a small hostel, and I decided implement structured markup, schemas.org and so on. So my question is, what the real impact/benefits of it.
My website will perform better?
does will get better rank ?1 -
Google Snack Pack Showing Different Colored Pins on Google Maps
Has anyone else noticed this? Does anyone know why the first result has a blue pin as opposed to the normal red pin?
Local Listings | | JasonKhoo0 -
Google Places - Remove Completely vs. Permanently Closed?
This is a bit confusing to explain so bear with me please. We have a client that used to have an old law practice with a partner. The site and backlinks were very large and it had a lot of domain authority. It also had a very large citation profile and history. The two lawyers have since split, but there remains multiple Google Places listings out there for the old partnership. We have fixed the one showing the old business practice name, but not the one that he setup for his personal name. One of the biggest hassles is that the old location he setup has his attorney name in the actual listing. The issue is that we cannot close the old listing (we tried this), as it comes up permanently closed when you Google his name. If you search for his new Law Firm, the correct business listing that we have set up will show. The new listing also includes his name and has over 50 five star reviews. We hoped that the large amount of legitimate reviews would get rid of or at least suppress the old listing, but it is not happening. So I am a bit confused as to what to do. If we close the old listing Google shows the red "permanently closed" listing when you Google his name. We cannot update the old listing information to show his new address as then it will compete with the new listing that we setup that shows all the positive reviews. The old listing was not created by us, and the new one was. The new one shows when you search for his Law Firm name in Google, but not for his personal name i.e "NAME HERE ATTORNEY" or "HIS NAME and LOCATION" Interested to hear your thoughts. The only way I can think to fix this is to contact Google directly and see if there is a way to permanently delete the listing from Google maps, but I am not aware that this is possible.
Local Listings | | David-Kley0 -
How to create a 2nd Google listing for the same brand
Hi All, We have an office in Berkeley CA which has a Google listing. Now we have launched a new office in Hayward CA and we're thinking of how exactly we should create the new Google listing for the office: Create a new google account and submit the page URL in it? Create a new Google account under our Berkeley google account. i.e. to have both under the same account in Google Thanks, Tomer
Local Listings | | OrendaLtd0 -
Google Places - not physical location, but listed as we are (e-commerce)
Hello Mozzers, We have specific situation with google places. We are e-commerce store but google display us as local business where people can come in. (with directions button). This creates problems for us, since we do not want and we are not setup to receive customers. On our website there is address in the footer and also we have About Us page with the address (this is the address of facility from where online orders are shipped.) - is this a problem and is google concluded that we are physical store because of this? Is there any way to change this or we should contact google directly and explain the situation? And if we should contact google, is there any risk involved? (like: why you have the address on site when you are not physical store? ) Thank you, Nenad
Local Listings | | Uniline0 -
How do URL's influence Google Rankings?
Hi There, I have a new client who wishes to rank in Google UK for 'Antique Fireplaces London'. Currently they rank 49th. They do not know their logins for Google Local (where they have 40+ positive reviews). And have very mess social activity (which i am trying to sort out). The domain is around 8 years old - website has just been redone (drupal) where a lot of the former SEO errors were corrected) but they seem to be outranked by much newer websites that have much lower domain authority and less inbound links. My client also has much more recognition in online trade magazines and newspapers than most of their competitors. Would buying some additional domains with the keywords they wish to rank for help? Or will this look dodgy to google? Any other quick tips to give them a boost?
Local Listings | | skehoe0