microdata

Using HTML5+Microdata's <meta> tag in the <body>

送分小仙女□ 提交于 2019-12-10 13:44:23
问题 I want to specify if the Product is "In Stock" using HTML5+Microdata's <meta> tag using Schema.org. I am unsure if this is the correct syntax: <div itemscope itemtype="http://schema.org/Product"> <h2 itemprop="name">Product Name</h2> <dl itemprop="offers" itemscope itemtype="http://schema.org/Offer"> <dt itemprop="price">$1</dt> <meta itemprop="availability" itemscope itemtype="http://schema.org/ItemAvailability" itemid="http://schema.org/InStock"> </dl> </div> 回答1: The meta tag can't be used

Schema.org for the FAQ page

痴心易碎 提交于 2019-12-10 10:33:52
问题 I have a FAQ page and I want to do it with better html-schema. <main role="main" itemscope itemtype="http://schema.org/WebPage"> <article itemprop="mainContentOfPage"> <header> <h1>Frequently Asked Questions</h1> </header> <section itemscope itemtype="http://schema.org/Question"> <h2 itemprop="name">Some question #1</h2> <p itemprop="suggestedAnswer acceptedAnswer" itemscope itemtype="http://schema.org/Answer"> <span itemprop="text">This is an answer #1</span> </p> </section> <section

Can we have multiple itemprop's on single element for microdata tagging

血红的双手。 提交于 2019-12-10 03:12:25
问题 Can we tag a single html element with multiple "itemprop" properties? I'm working on something for micro data tagging.(schema.org) <asp:HyperLink ID="hlnk10" itemprop="url" itemprop ="manufacturer" runat="server"> </asp:HyperLink> The hyperlink Text contains both properties I want to tag Is this possible as per schema.org standards? Thanks in advance. 回答1: My reading of the specification leads me to the conclusion that you can have just one itemprop attribute per element but it can have more

Using Microdata with schema.org/OpeningHoursSpecification

£可爱£侵袭症+ 提交于 2019-12-09 18:00:53
问题 I'm looking at http://schema.org/OpeningHoursSpecification Microdata schema for places (and more). I'm a little bit confused on the value to be used for DayOfWeek. Both classes ( OpeningHoursSpecification and DayOfWeek ) are derived from the GoodRelations Vocabulary for E-Commerce and I'm not confident with this vocabulary. Please, can you post a full example? 回答1: The enumerations (list of predefined values) of the GoodRelations model remain in the GoodRelations namespace, i.e. for Mondays,

Is this use of structured data incompatible with JSON-LD?

↘锁芯ラ 提交于 2019-12-08 18:52:41
StackOverflow has some good comparisons of Microdata, RDFa, and JSON-LD, especially in answers by "unor" in 2014 , 2015 , 2015 , and 2016 . Google specifically states "Google recommends using JSON-LD for structured data whenever possible." But when I look at the page source of a Google search, the very first content of the page is: <!doctype html> <html itemscope="" itemtype="http://schema.org/SearchResultsPage" lang="en"> The itemscope and itemtype attributes in the <html> tag are microdata. So why is Google using microdata when it tells us to use JSON-LD? Is there something about the use of

Correct 'warranty' itemprop syntax

☆樱花仙子☆ 提交于 2019-12-08 06:42:59
问题 What syntax is correct for warranty itemprop in https://schema.org/Offer? This one <meta itemprop="warranty" content="2ANN" /> or … <meta itemprop="warranty" content="2 ANN" /> or with hierarchy … <span itemprop="warranty" itemscope itemtype="https://schema.org/WarrantyPromise"> <span itemprop="durationOfWarranty" itemscope itemtype="https://schema.org/QuantitativeValue"> <span itemprop="value">2</span> years <meta itemprop="unitCode" content="ANN" /> </span> </span> 回答1: The warranty

How do I use Schema.org to identify filters on our hotel search site?

痴心易碎 提交于 2019-12-08 06:13:30
问题 I'm working on a site designed to help a user find a hotel. We've got lots of widgets for filtering the hotels we show (e.g. price filters) or else ordering the hotels we show (e.g. by distance). I can see how to markup our hotels as being a list. And also how to communicate the sort order of the list. And we're already marking up the hotel's themselves: <div itemscope itemtype="http://schema.org/Hotel"> <div itemprop="image" style="background-image: url('{{{ imageUrl }}}');"></div> <h2 class

Is this use of structured data incompatible with JSON-LD?

不打扰是莪最后的温柔 提交于 2019-12-08 03:41:54
问题 StackOverflow has some good comparisons of Microdata, RDFa, and JSON-LD, especially in answers by "unor" in 2014, 2015, 2015, and 2016. Google specifically states "Google recommends using JSON-LD for structured data whenever possible." But when I look at the page source of a Google search, the very first content of the page is: <!doctype html> <html itemscope="" itemtype="http://schema.org/SearchResultsPage" lang="en"> The itemscope and itemtype attributes in the <html> tag are microdata. So

schema.org / microdata - Product or Offer?

戏子无情 提交于 2019-12-07 06:47:53
问题 I am having trouble using MicroFormats and working out which itemtype to use, either Product or Offer. I have used Offer to add data to the various products that we sell (1 per page). Although this validates properly in the Google Structured Data testing tool it will not show the Price/Rating/InStock in the results. If I use a mixture of Product and Offer then it will although I am not sure this is the correct way to do this ? Thanks, Rick <title>My Tent</title> <div itemscope itemtype="http:

Mixing JSON-LD and Microdata Schema.org

一世执手 提交于 2019-12-07 03:24:17
问题 If I have the following markup: <body itemscope="" itemtype="http://schema.org/WebPage"> <h1 itemprop="name">Lecture 12: Graphs, networks, incidence matrices</h1> <p itemprop="description">These video lectures of Professor Gilbert Strang teaching 18.06 were recorded in Fall 1999 and do not correspond precisely to the current edition of the textbook.</p> <div itemprop="publisher" itemscope="" itemtype="http://schema.org/CollegeOrUniversity"> <h4 class="footer">About <span itemprop="name">MIT