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 Multiple Listing
Can a specialist doctor who operates out of several locations have multiple GMB listings? She operates under her company brand name if that makes a difference. Thank you community!
Local Listings | | Crystal.w0 -
Where does text in Google business listing description come from?
Had a question from a freelance project I'm working on and have to admit..I was stumped. When you Google the business "Salute Market Palm Beach Gardens", in the right sidebar there is a short description that reads "This patio bar serves small plates, wine & cocktails in a cozy space with an attached upscale deli." I have no idea where that text is coming from or where it is controlled..thoughts? Thanks! Ricky
Local Listings | | RickyShockley0 -
For Google's Structured Data, should I change my listings from Product schema to Local Business schema?
I was reading Google's Structured Data spec, and I'm considering changing the schema of our listing pages from the Product schema to the Local Business schema. Is this a good idea? To give you a little more info, the pages that I'm classifying are listings for physical spaces that our website rents out for activities, such as meetings. Here's an example of a listing: https://www.peerspace.com/pages/listings/550ddcde2f352d0800fc186b Our goal is to add the proper schema.org tags to the page so that our spaces show up in local searches, such as "meeting space in San Francisco." The problem is that when we add location microdata (addressLocality, addressRegion, etc.) to our current "Product" schema, Google tells us that "Products" can't have a location. However, we aren't quite a "Local Business" either, since we don't publicly share our space's street addresses—only the space's neighborhood/city/state for privacy reasons. As a result, we get an error from Google's Structured Data Tool as a "Local Business" page because "streetAddress" is required for Local Businesses. Should we switch to the Local Business schema anyway, even though we get structured data errors for streetAddress? Or is it better not to include the location information in the microdata so that we don't have errors? Does Google penalize you for incomplete tags? Any input is appreciated!
Local Listings | | stuartstein0 -
Map placement on google disappear after claiming business
Hi guys 1st of all pls bear with me as i am new to this, google created a page for our business im not sure how probably its automatic and since it was created by google its unclaimed. My friend have been telling us that everytime he search for our business which is a furniture business located in the philippines he just type in our exact business name "evergreen diamond school supplies" then map or location appear on the right side of the google search engine. After finding out about google business from a friend i tried to claim our business page, we hire a web developer to build a website for us and since our business name is too long "evergreen diamond school supplies" the dev team suggested a shorter name which is "edssph.com" since "edss.com" is not available then after 2 weeks site was done and we launched it. We claimed the unclaimed business page of our business and it took us 3 weeks to receive the post card and now it was verified. We are very happy and when we type our business name "evergreen diamond school supplies" map appears and contact #'s are there and all the necessary info users need but after 2 days whenever i type "evergreen diamond school supplies" location doesnt appear anymore i have to type in "evergreen diamond school supplies taguig" where taguig is our city where our business is located, so what happened? i hope someone here can guide me. If "eevergreen diamond school supplies" doesnt work anymore i am fairly new to local SEO so i'd like to know what happened or what could i have done wrong. thanks in advance
Local Listings | | xpertmedia0 -
Using same business number on different websites
Hello, I have number of websites in different locations with different business name and address with verified listings. However, I am thinking to use the same phone number on all the websites as it is difficult for me to keep track of all the numbers. So, is it okay to use the same phone number on different websites with different business name and address? Waiting for your thoughts. Brian
Local Listings | | BrianBotts.0 -
Problem Shooting with Google authorship
The following two photos show the problems that we are having with setting up our Google authorship. What steps would be necessary to correct these errors? abyP0Vg db4ZOgA
Local Listings | | Dynamo-Web0 -
How can I go beyond the results in the google pack
Hi All: I have a quick question. If you google "plumber" in San Francisco, you get about six options in the pack. After that the results go into very general topics about plumbers. Is there a search method that will allow me to see all of the plumbers in this city 700,000, not just the six Google chose?
Local Listings | | wrconard0 -
Google custom url options - Brand Name or Keyword
Hi All, Recently we were given the option to choose from two custom urls for a car dealership's G+ page:
Local Listings | | EEE3
+brandname
+locationdealershipbrand Made up example:
+scottford
+nyford My gut tells me to choose the +brandname option, but curious to see if anyone had any other input about how the "location + dealership brand" custom url choice could impact local search results, if at all. (I was surprised that it even came up as an option because to me it echoes EMDs...) Thoughts? Thanks!0