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
-
GMB Listings: No customer actions data for the last week
The medical clinic listings I manage for a client are showing zero customer actions for the last week (since Oct. 9). Visit your website, request directions, calls -- all dropped to zero. Only the View Photos metric is continuing as normal. The same thing has happened to the "Where customers view your business on Google" and numbers from listings on search and on maps. This has happened across multiple (20+ so far that I've checked) listings. Has anybody else seen this?
Local Listings | | Decagon_Digital0 -
Geo-targeting Schema Codes
Hello Moz, I have a couple of questions about the wonderful world of schema.org. I understand basically how everything works, but I have a client that has multiple locations and operates as a bowling alley/restaurant/entertainment venue. My questions are as follows: 1. What is the difference between the Place, LocalBusiness, and Restaurant Schema Codes? Can I geo-target these codes to come up in the areas of the different locations? 2. With the Restaurant Schema Code, will the menu populate in google the way other restaurants do? Do I just need this code on pages that relate to their menu/restaurant? 3. Is there some sort of cheat sheet somewhere where I can see examples of codes and how to use them? Thanks!
Local Listings | | ColeBField0 -
Google not finding my site
I built a website, http://deeprootshgc.com. I submitted the site to google and have set up analytics. When I search for the site, deep roots home and garden center, I get their facebook page, manta and everything but the actual URL. Any thoughts?
Local Listings | | MarkBolin1 -
Google Plus Local - Business address, regions covered/served
Hi If you have a client whose business address is not the same as the regions they serve/cover then how do you set this up correctly in G+? So listing (& preferably website too via the G+ places connection & onpage local address schema) do help local search query listings in the target areas ? Also schema too if possible (i.e. how do you add areas/regions covered if outside of actual business address area) ? Is the only way round this to set up serviced/virtual office addresses in your target market regions ? Surely there's a way to have a business listed in areas outside of its actual address. Its a physical business but is not bricks & mortar beyond the admin office. All Best Dan
Local Listings | | Dan-Lawrence1 -
For companies with multiple locations, does Google mind "Duplicate Content" in local (maps) business descriptions?
I have about 20 locations for my counseling company "Thriveworks" on google. I am getting ready to submit a spreadsheet and take advantage of the new "bulk upload" to manage these locations. Each of my locations has a description that is basically the same in terms of sentiment, but 100% original content (because Google has historically hated duplicate content). 1) Should I copy and paste each location's current unique description into the spreadsheet, or just write one very good description and copy it for all 20 locations?2) Does Google like/dislike "duplicate content" as it applies to business descriptions?3) Is changing a location's description likely to temporarily harm the "ranking" of my business location in search results?Will really appreciate any help...
Local Listings | | Thriveworks-Counseling0 -
Website blocked by Robots.text while in Google Places Pending.
Hello everyone, If I have pending google places listing, and I added my websites robot.text to block search engines. Will I still get accepted in Google Place? The reason is. We want to block the Google Places listings from search, and only show up on the google places listings. As we have to have a similar website with more explicit content we want to rank on the search results. www.mywebsitetor.com (google places) (PG)
Local Listings | | EVERWORLD.ENTERTAIMENT
www.mywebsitetoronto.com (organic ranking) (A) Hope this make sense, thanks for your help.0 -
How do URL's influence Google Rankings?
Hi There, I have a new client who wishes to rank in Google UK for 'Antique Fireplaces London'. Currently they rank 49th. They do not know their logins for Google Local (where they have 40+ positive reviews). And have very mess social activity (which i am trying to sort out). The domain is around 8 years old - website has just been redone (drupal) where a lot of the former SEO errors were corrected) but they seem to be outranked by much newer websites that have much lower domain authority and less inbound links. My client also has much more recognition in online trade magazines and newspapers than most of their competitors. Would buying some additional domains with the keywords they wish to rank for help? Or will this look dodgy to google? Any other quick tips to give them a boost?
Local Listings | | skehoe0 -
Unable to verify my google local listing page by phone verification.
Hi, I have created the Google local listing page for my business site. I want to verify it using the phone verification but there is only a option - "verify by postcard". Is there no option to verify it using a phone number? Help needed.
Local Listings | | SangeetaC0