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
-
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 -
Two Google My Business accounts for two companies at same address
I have a client (flat roofing) with two registered businesses both of which are based from the same address, upon trying to create a new GMB account for the second business, it was immediately suspended by Google. So somewhat unsurprisingly one address one business, but is there a way around this?
Local Listings | | Donsimong0 -
Why is a Google Listing Showing Up in a Different Town Than Its Address?
I have a client who runs a dental office on the outskirts of Racine, WI. His address specifically shows up as being in Racine, however, his GMB profile has always showed with the category of "Dentist in Mount Pleasant, WI" displaying below the photos. (Mount Pleasant is the next town over and his office straddles the line between the two towns in Google's overlay map of the town.) Obviously this is frustrating and I'm concerned that his location is hurting his ability to rank in the larger, more populous town of Racine. Have any other SEOs ever encountered this? And if so, how have you approached the issue? Location pages? Mentions of the location more often on the pages? tsLvH2B
Local Listings | | formandfunctionagency1 -
Google Local Storefront or Google Service Area?
We have been seeing some strange things happen in Google local after the most recent update. We used to show up in the maps all the time and have made no major edits or changes to the profile. Now when we search for our services, we show up high in the organic results, and not at all in maps (local listings). We have our profile setup as a service area since we do meet with people and provide services at their location, but also have checked the option that we also serve people at our address. I am wondering if the recent update favors actual storefronts when people are searching for services. Any ideas? Technically all the actual work is provided at our location, and the service we provide at the service area locations is based upon consultations. If we switched it to an actual storefront listing could that possibly help? Our profile is fairly strong, and has reviews, long history of posts, etc. What gives Google?
Local Listings | | David-Kley1 -
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 -
Adding new business location. Google My Businesses vs. Google Map Maker
Hi everybody, Adding new business location. Is it better for local visibility to add it via Google My Businesses dashboard directly or via Google Map Maker first (and then claim it in My Businesses dashboard)? Thanks
Local Listings | | Ryan_V0 -
Report Google Plus Pages for Catergory Stuffing?
Doing some analysis for a clients and it have come to our attention that some of the competitors in this area have 16 to 18 categories, many duplicate and keyword stuffed. I tried to find a specific action to report this to Google, I am aware you can report spam for websites does this apply to the places pages as well? Can you just use the report abuse or report spam links? Anyone have any experience with this type of action with Google? Thanks.
Local Listings | | AFoust1 -
Google Places and Backlinks
Hi i was wondering is there much benefit in linking to the Google Places listing (e.g tohttps://plus.google.com/10524970xxxxxxxx improve its rankings and local visibility in the search results? I've been building citations, with the correct and consistent NAP but it doesn't seem to be helping the listing improve. I'm thinking to start linking citations like Yelp, True Local, etc to the actual GP listing Regards,
Local Listings | | MBASydney
Mike0