microdata

Specifying complex structure with meta tag in Microdata

醉酒当歌 提交于 2020-01-12 09:53:35
问题 How can I tag information that is not displayed on the page with the Microdata format? Typically, we do not want to display publisher/author info on the page, but Google requires this info for Articles, and they have a complex structure. I do not want to put this data in hidden span/div or anything, so I thought I'd use the meta tag. But how do I specify the logo and name of the publisher entity using metas? Do I need to use itemref somehow? <section itemscope itemtype="http://schema.org

itemtype with http or better https?

蹲街弑〆低调 提交于 2020-01-11 12:13:12
问题 I use like: itemtype="http://schema.org/ImageObject" but the request http://schema.org/ImageObject will be forwarded to https://schema.org/ImageObject . If I change to itemtype="https://schema.org/ImageObject" , the Google SDTT shows no problem, but nearly all examples about structured data from Google are with http. What is best or recommended to use http://schema.org or https://schema.org for itemtype ? 回答1: From Schema.org’s FAQs: Q: Should we write https://schema.org or http://schema.org

Best way to markup “mainContentOfPage”?

时光总嘲笑我的痴心妄想 提交于 2020-01-11 08:44:29
问题 for other areas of a web page it is simple to mark up; i.e. navigation element, header, footer, sidebar Not so with mainContentOfPage ; I've seen a number of different ways to implement this, most recently (and I found this one to be the most strange) on schema.org itself: <div itemscope itemtype="http://schema.org/Table"> <meta itemprop="mainContentOfPage" content="true"/> <h2 itemprop="about">list of presidents</h2> <table> <tr><th>President</th><th>Party</th><tr> <tr> <td>George Washington

Correct way to use multiple itemtypes in Microdata

此生再无相见时 提交于 2020-01-09 11:22:37
问题 See http://microdatagenerator.org/ for example. What is the standardized way of, for example, declaring that my page is about a LocalBusiness which is also an AutomotiveBusiness ? And where is the standards document that specifies this definitively? 回答1: The W3C Microdata specification (currently a Working Draft) says about the itemtype attribute: The itemtype attribute, if specified, must have a value that is an unordered set of unique space-separated tokens that are case-sensitive, each of

Homepage Rich Snippets

此生再无相见时 提交于 2020-01-07 06:14:41
问题 I am trying to display Rich Snippets for my store which is working fine for products and categories but it does not display rating/reviews for my website/homepage. Below is my code <span itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating"> <meta itemprop="ratingValue" content="4" /> <meta itemprop="bestRating" content="5" /> </span> Is it something I am doing wrong or Google does not allow this for homepage? 回答1: No, review rich snippets should only be used in cases where

Homepage Rich Snippets

只谈情不闲聊 提交于 2020-01-07 06:14:20
问题 I am trying to display Rich Snippets for my store which is working fine for products and categories but it does not display rating/reviews for my website/homepage. Below is my code <span itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating"> <meta itemprop="ratingValue" content="4" /> <meta itemprop="bestRating" content="5" /> </span> Is it something I am doing wrong or Google does not allow this for homepage? 回答1: No, review rich snippets should only be used in cases where

Microdata format for showing an event with multiple date/time

无人久伴 提交于 2020-01-06 14:48:56
问题 With Microdata, what is the best way to represent an event page with multiple date/time booking options? There will be occasions when the event page only has one booking option, i.e one set date/time, no alternative, does this require a different method? <section> <h1>Tennis Lessons</h1> <ol> <li>Book Tickets for <time datetime="2001-05-15 19:00">May 15</time> </li> <li>Book Tickets for <time datetime="2001-05-16 19:00">May 16</time> </li> <li>Book Tickets for <time datetime="2001-05-17 19:00

Microdata format for showing an event with multiple date/time

心不动则不痛 提交于 2020-01-06 14:48:13
问题 With Microdata, what is the best way to represent an event page with multiple date/time booking options? There will be occasions when the event page only has one booking option, i.e one set date/time, no alternative, does this require a different method? <section> <h1>Tennis Lessons</h1> <ol> <li>Book Tickets for <time datetime="2001-05-15 19:00">May 15</time> </li> <li>Book Tickets for <time datetime="2001-05-16 19:00">May 16</time> </li> <li>Book Tickets for <time datetime="2001-05-17 19:00

Structured data (microdata) and embedded items

一个人想着一个人 提交于 2020-01-06 01:45:34
问题 I want to use Microdata with Schema.org to define the main content of my webpage, so I did something like this: <body itemscope="itemscope" itemtype="http://schema.org/WebPage"> ... <div itemprop="mainContentOfPage" itemscope="itemscope" itemtype="http://schema.org/WebPageElement"> <div itemprop="breadcrumb" itemscope="itemscope" itemtype="http://schema.org/BreadcrumbList">...</div> </div> ... </body> The problem is that when I check the schema under the Google Structured Data Testing Tool I

Using Microdata's 'itemprop' attribute on non-text elements

大兔子大兔子 提交于 2020-01-06 00:39:44
问题 I have a following piece of HTML with some Schema.org Microdata added: <section class="feature" itemprop="description"> <div class="measure"> <p>Lorem ipsum etc...</p> <p>Lorem ipsum etc...</p> <figure class="polaroid product"> <img src="dry-aged-beef-horizontal.jpg", alt="Dry Aged Beef", itemprop="image" /> <figcaption>Dry Aged Beef</figcaption> </figure> </div> </section> Is it all right to use the itemprop attribute on an element that isn't itself a text node (like section above), but