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.
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 Listing Doesn't Appeare on 3Pack anymore
Hi, One of my GMB listing suddenly stopped ranking in the 3Pack Results. It used to always rank in 1st or 2nd position in the 3Pack results, Suddenly since 24th May it completely Flatlined, I don't know why but It doesn't show up in the results, or when I click see more. It completely vanished for that term locally. My Listing is based in Brisbane, QLD, Australia and it doesn't show up for that term in The Brisbane area. But when the Location info is Australia and not Brisbane, Australia it shows up again. I don't know what is the problem in this case... Any Suggestions will be much appreciated.
Local Listings | | Moxoms10 -
Fighting spam on Google Maps
"Suggest an edit" on Google Maps works occasionally and so does Google's Redressal Form. Sending a DM to @GoogleMyBiz on Twitter does too. But it seems like the vast majority of spammy businesses that I report, go unnoticed by Google. I'd really appreciate hearing from some other SEOs on how they remove crap from the map, with better results. Thanks.
Local Listings | | Jason_Taylor0 -
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 -
Incorrect Google Places Listing Outranks Other
We have 2 Google Places listings (due to 2 Google Accounts). One listing (the one with the wrong address) outranks the correct listing. Am working on updating citations and have updated the website with the correct address. I do note that Google has not picked up that the contact page has changed and has not seen the changes to many of the citations. Do we: Update the incorrect listing with the correct address for the time being to resolve issues with clients. Remove the old (incorrect) listing. Or is there a better way to sort this out am concerned that removing the listing will lose us our Google Places rank.
Local Listings | | GrouchyKids0 -
Rank English Terms in Swiss Google Google.ch
Happy New Year! I have a .com site that does well on Google.co.uk. But we would like to rank on Google.ch (switzerland) for English terms. There is a large expat community, living in Switzerland that would benefit from our services. Any ideas how I can improve organic SEO on the Google.ch SE? Many thanks! PM me for website. Otherwise I'll get lots of spam to my client 🙂
Local Listings | | SolveWebMedia0 -
Google points of Interest / POI
Hello, Looking for some guidance on how to appear and get listed in Google Points of Interest in the Search Engine Results Page. Like when searching for "attractions Seattle" at the top of the SERP these listings appear. Cannot seem to find some good resources on the topic as well. Thanks Conrad
Local Listings | | conalt1 -
Our satellite office isn't showing up on Google maps. How can we add it?
We are trying to include maps to our locations on our "Contact" page, and in taking these maps from Google, we came upon the following issue: We have Google+ listings for several of our satellite offices, which are set up through Carr Workplaces. When we look on maps, we can only find the Carr Workplace listing, rather than the listing for our business at that location. Obviously, we don't want to display the map that way on our own page; we want the map to show our business name. I realize that Google only wants fully-staffed businesses to be displayed on maps, and so whether or not we belong there is up for debate within our company. That said, we'd like to know how to make the maps listing work regardless. Thanks!
Local Listings | | ScottImageWorks0 -
Google+ Business Listings: Hours Displayed Incorrectly
Hi, When I do a search for our brand + location name (basically making sure we at least appear for that) the hours displayed are incorrect except when I log into our account to edit the hours they are right. Ex: Google SERP displays hours 8am - 11pm but within business listing account hours entered are 8pm - 10pm. Has anyone come across this and why would it be? Is it a case of other citations showing the incorrect hours? Thanks for your help WMCA
Local Listings | | WMCA0