microdata

Define parent node before child in schema.org

假装没事ソ 提交于 2019-12-13 18:43:36
问题 Is it obligatory to write Product node (parent) before Offer node (child) in DOM schema of schema.org or I can define Offer node without its parent node? 回答1: Schema.org never requires the existence of "parent" items (unless you use itemprop on an element with itemscope ). So this is totally fine: <html itemscope itemtype="http://schema.org/Offer"> </html> But even if you would want to add a Product, it doesn’t have to be a parent for Offer. You can nest the Product under Offer: <div

Do my web pages need to be in HTML5 to use the Data Highlighter or Schema.org Microdata?

只愿长相守 提交于 2019-12-13 08:57:17
问题 Do my web pages need to be written in HTML5 to use the Data Highlighter? Do my web pages need to be written in HTML5 to use the Schema.org Microdata? 回答1: Not sure about the Data Highlighter, but yes, in order to use Microdata (whether with schema.org or any other vocabulary) you need to use HTML5. Microdata was originally part of HTML5 (it was removed from the spec some time ago, and now exists separately, but is still only valid in HTML5). However you can still use schema.org in non-HTML5

Is the “content” attribute valid for the <span> tag > if so is it a good practice?

你离开我真会死。 提交于 2019-12-13 07:33:58
问题 Is the "content" attribute valid for span tag? If so is it a good practice? I'll be applying microdata (schema.org) on my site pages. I want to add microdata on some elements of my page. This is my current code: <span itemscope itemtype="http://schema.org/Product"> <a itemprop="url" class="list-items" href="/product/286/cryptomate64-usb-cryptographic-token/" title="CryptoMate64 USB Cryptographic Token"> <span itemprop="name">CryptoMate64 USB Cryptographic Token</span> <span class="hidden">

Local itemType Ref - Microdata

不想你离开。 提交于 2019-12-13 05:30:18
问题 I have just begun working with Microdata and added a simple AggregateRating to a clients website. That’s working fine, however the client wants me to change the itemType="http://schema.org/AggregateRating" to itemType="http://[His Website]/AggregateRating" by simply copying the page. I only started looking at Microdata yesterday, but I’m sure its not going to work simply by copying the page to a local file, and I suspect it’ll do more harm than good. Can someone please confirm this is a bad

How to mark only product categories?

℡╲_俬逩灬. 提交于 2019-12-13 04:56:41
问题 How do I have to mark my website product categories? … only categories … Maybe with category from Offer ? Something like: <div itemscope itemtype="http://schema.org/Offer"> <a itemprop="category" href="category1.php">My category 1</a> </div> 回答1: You should not specify category on an a element. The value would be the URI ( category1.php ), not the content ( My category 1 ). category expects a value that is either text or another item. So if you want to provide text, you could use something

Author error inside Google Structured Data Test

强颜欢笑 提交于 2019-12-13 04:40:57
问题 I receive this error when analyzing a review of my website: "Missing required hCard "author"" http://www.google.com/webmasters/tools/richsnippets?q=http%3A%2F%2Fwww.gamempire.it%2Fcastlestorm-ps-vita%2Frecensione%2F131419 Why? I have setted the class="author" inside the html. This is the code of the page: https://gist.github.com/anonymous/7675765, that you can find here: http://www.gamempire.it/castlestorm-ps-vita/recensione/131419 回答1: author vcard has to be inside the hentry element http:/

Nested microdata itemscope without itemprop

别说谁变了你拦得住时间么 提交于 2019-12-13 02:06:20
问题 For a microdata parser I'm writing I parsed the following (simplified) html source: <html itemscope itemtype="http://schema.org/Article" class="no-js" lang="nl"> <head> <meta itemprop="name" content="Some article name"> </head> <body> <div itemscope itemtype="http://schema.org/Movie"> <span itemprop="name">Skyfall</span> </div> </body> </html> Couple of questions about this: Is this a valid implementation following the W3c spec? I couldn't find anything in the spec itself, but don't know if

Google SDTT: “The property 'availability' is not recognized by Google for an object of type Product”

有些话、适合烂在心里 提交于 2019-12-12 21:03:57
问题 Situation: need to add the availability property to a product page. Schema.org recommends this format for Microdata: <link itemprop="availability" href="http://schema.org/InStock" />In stock I'm combining it with the code on our site: <li> <i class="fa fa-check-square-o">  <link itemprop="availability" href="http://schema.org/InStock"> <span>In Stock</span> </i> </li> Problem: Google Structured Data Testing Tool reports: http://schema.org/InStock (The property availability is not recognized

Schema.org linking multiple startdates to one event

空扰寡人 提交于 2019-12-12 18:54:33
问题 I am new to rich snippets and schema.org markup. I would like to implement it on one site but the layout is strange: startDate; location; 3 categories of Prices; multiple startDates; name of the event; description. Could this fact be an obstacle for including the markup? Moreover I am trying to find out examples how to create schema.org definition for one and the same event with multiple startDates but seems there is no spec for this. Do you know how can I do it? I have tested something but

Error in SDTT: “SiteNavigationElement is not a known valid target type for the additionalType property.”

…衆ロ難τιáo~ 提交于 2019-12-12 06:45:36
问题 I tried a simple example, but the SiteNavigationElement is not working when I test it using the Google Structured Data Testing Tool. It gives the error: SiteNavigationElement is not a known valid target type for the additionalType property. The Microdata: <div itemscope itemtype="http://schema.org/WebPageElement"> <link itemprop="additionalType" href="http://schema.org/ItemList" /> <meta itemprop="name" content="navigation_menu" /> <ul> <li itemprop="additionalType" itemscope itemtype="http:/