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 -
Influencing telephone number search
Hey All, I am not sure this is possible but here goes... I've a phone number pulled in from "Google My Business" for the company I work for Caravan Guard Insurance. We have different numbers for specific functions e.g. claims, renewals, quotes. Currently If I type in "caravan guard claims number" into Google Search it shows our general tel number which is clearly pulled in from GMB and the Knowledge Panel. Can this be influenced or have multiple options? For example If I were to search "caravan guard number" it would continue to show our default customer number like present, but if I were to search for "caravan guard claims number" it shows our claims number. Not sure it is possible, but thought I would ask. Cheers all Tim Z6iaU9a
Local Listings | | TimHolmes0 -
Google My Business Question
I work for a large organization with a number of locations. There is a Google My Business listing for us, under our umbrella name, that lists an old address (building we no longer occupy) and says that we are "permanently closed". I believe this is an unverified listing because there is an "own this listing?" link in it. In order to take control of the listing, Google gives us three options: call, text or snail mail. The number is an automated line so calling and texting aren't going to work and snail mail wouldn't work b/c we're no longer in the building. Anyone know how we can take control of this listing so that it doesn't look like we're "permanently closed?"
Local Listings | | yaelslater0 -
[Local Search] Do you get penalized by using a Google Voice number for each seperate business location?
My client is expanding and opening up separate locations and I will be getting all their online business listings up and running. The client wants to use a single 1-888 number for all locations, however, it was my assumption that they would need a local number for each location to improve their ranking. Could I suggest using free Google voice numbers that get forwarded to their 1-888 number or will Google discredit us for this?
Local Listings | | aedesignco0 -
Help with Google+ business name rules
I'm marketing a franchise gym business that has multiple locations within the same city. For the business name, I used to have it set as "Business Name" + City + Tagline. For example: "Ultimate Workout South Calgary Gym and Bootcamps". and "Ultimate Workout North Calgary Gym and Bootcamps". To comply with the google business naming rules I've updated all the listing to just business name. The problem is, now the local search results for my gym locations are confusing. Half the address is cut off in the results, the city is not displayed at all. And sometimes results from a neighbouring city are shown. Anyone have an idea on how to implement a strategy where people at a quick glance understand which location is best for them?
Local Listings | | John-Ray0 -
Rankings on Google local search
Hi, I have been experiencing different rankings while searching with Google local site such as on: google.com.mt > English interface google.com.mt > native language interface but still searching in English. The search phrase is always in English. Also in both occasions the SERPs would contain English listings. There would be no Local/Map listings that affect results order. What is the solution to increase visibility on both English interface and native language interface? Thanks! Conrad
Local Listings | | conalt0 -
Does Google Penalize for Hiding Address?
I have a situation where a client is working out of their home. I know that Google does not like when you list a business with a home address so we have hidden the address on Google, but are wondering if Google penalizes businesses for hiding it? When listing them to other directories we do our best to find ones that we can hide the first line of the address. But does that matter? Should we just be listing to our normal directories with the address visible? Does a mix of hidden addresses and visible ones hurt your rankings? Thanks in advance for your help!
Local Listings | | JohnWeb120 -
List of categories for Google Business for the UK
Does anyone have a compete list of the business categories for the UK Google Business listings? I have done a few searches on line and not uncovered anything up to date. Thanks in advance.
Local Listings | | highwayfive0