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 -
VERY specific Google search result not showing
Hello, I'm doing this google search "Peruvian Lilies Delivery To Athens, Alabama globalrose", in the hopes of this page appearing. It does not! Does anyone know why this page (or most pages in out local.globalrose.com subdomain) aren't appearing on Google search results?
Local Listings | | globalrose.com0 -
Our website ranks first in SERP but is not listed in google local list
Hi, Our website is currently (and has been) ranking 1st for a number of keywords but is not listed under the Google Local list. I have double check that all the (physical) info is correct. I do not have a duplicate page. When I order the Google Local results in rating order, we then appear on top! Has anyone come across such a situation and would you have tips on how to solve this issue? Thanks!
Local Listings | | GVZH1 -
Google business listing For more then one location
Hi there, I am Newbie to SEO, So please Help me come out From this Query, I have Client Who serves @ 4 Locations. I have Registered main Business Location in Google business listing , But What if i Do, if want to add My Other 3 Locations With Different Address?? as Website, Business Name, Same, So, I am Little bit confused, What Step i can do to make that Other 3 Listing on Gbl too??? Thnx in advance,
Local Listings | | pooja.verify07
Rohit.0 -
How do I win the Google knowledge panel?
Hi everyone, so my company has a knowledge panel that show up for some keywords. I use to be #1 on the map (for my favorite keyword) when Google was showing several listings. Now that it show only one, it's not me anymore and I wonder why. So what are the SEO leverage I need to focus on to win this new google knowledge panel? Thank you very much.
Local Listings | | JimJ0 -
My website Not ranking in google
Hey there, My website Created in wix , & its Ranking in google, i have searched & get know That Websites By wix are nt getting indexed by google is this true?? If not then what are steps i can take To boost MY Site SEO I have Read article Of Wix Here . please check, Thnx in advace
Local Listings | | falguniiepl10 -
My Evernote Notes showing up on Google Search page ?
I may just be living under a rock here in Reno, but tonight while doing a search (on desktop) for a phone number of a restaurant in Tahoe, Google served me a bunch of my Evernote notes along with my SERPS After the initial "WTFriday" moment, I realized that there was an "Evernote" bar above a series of images of what Google must think are related notes --- for example in a few weeks I am planning to take friends to Bliss & Rubicon - and I had saved the map in Evernote. Next to the map image were two notes related to daughters upcoming swim meet in South Tahoe. I did a similar search and this time a listing for hours at a local pool (near Tahoe) and two other documents came up. Since I live in Reno I thought it was odd to get all those Tahoe activities - but the fact that my Evernote on "Tahoe" things was there caught me off guard. The results were locate on the right hand where local business maps usually are -- the map and business info about the restaurant I was looking for appeared below that. ... while the left hand column features traditionals SERPs. . I am just trying to find out if I am late to the party on this ... or if serving data saved in my Evernote files is new... If anyone else has seen this, let me know. I could just be late to this. ...
Local Listings | | AJFanter0 -
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