microdata

How is Value determined for an Anchor Tag with Microdata?

纵然是瞬间 提交于 2019-11-28 13:44:09
How do Google and others determine the value of an itemprop on an Anchor tag? <a href="foo.html" itemprop="barprop">Name Of Link</a> In the example above, is the itemprop's value the href attribute, much like how the link tag is parsed? Or is the value the innerHTML , as a standard block element is parsed? I've searched quite a bit and cannot find the answer. I'm open to all answers, but I'd very much like a source for the answers given so I can further investigate. Thanks in advance! The Microdata spec (which is now merely W3C Note ) defines : If the element is an a , area , or link element

How do I have an itemprop nested in one itemscope actually be applied to a different itemscope?

落花浮王杯 提交于 2019-11-28 12:50:17
TL;DR --> I want an itemprop nested in one itemscope to actually be applied to a different itemscope. How do I do that? Here's a a gist of the code I have (I've removed classes and other extraneous elements on the page to focus on what's important): <!-- CODE I HAD --> <div itemscope itemtype="http://schema.org/Product"> <div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating"> <span itemprop="ratingValue">79</span> <h1 itemprop="name">Someproductsoandso</h1> <span itemprop="reviewCount">830</span> </div> </div> <!-- CODE I NOW HAVE --> <div itemscope itemtype=

Microdata markup with 'mainEntityOfPage' for Google Article Rich Snippet

一世执手 提交于 2019-11-28 11:39:24
The Microdata example of Google’s Article Rich Snippet contains this meta element with Schema.org’s mainEntityOfPage property: <meta itemscope itemprop="mainEntityOfPage" itemType="https://schema.org/WebPage" itemid="https://google.com/article"/> When checking it with the Nu Html Checker , I get this error: Element meta is missing required attribute content . Adding an empty content attribute seems to solve this error. Is it correct to do this? unor The Nu Html Checker is correct, Google’s example is invalid. The content attribute is required if the meta element has an itemprop attribute. From

Is there any schema.org type for teasers of a blog?

白昼怎懂夜的黑 提交于 2019-11-28 10:51:12
问题 Teasers on the front page of a blog surely are not the targets for us to add itemtype="http://schema.org/BlogPosting" to because each of them is not a full blog posting and is just one or two paragraphs with a "Continue reading" link instead. But since they are part of a blog, is there any blog-related Microdata for them or not? 回答1: A person is still a person, even if you don’t provide the name. A place is still a place, even if you don’t provide the address. A blog posting is still a blog

Proper datetime attribute for <time>

走远了吗. 提交于 2019-11-28 10:47:07
问题 While Schema.org writes Here is an example: <time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time> . on the HTML5 validator I get this error: Bad value Mo, Tu, We, Th, Fr 09:00-16:00 for attribute datetime on element time : The literal did not satisfy the time-datetime format. …" datetime="Mo, Tu, We, Th, Fr 09:00-16:00">every work day 9am to 16pm </time></li> I really want to communicate the opening hours (and days) in Microdata, but it seems this is

True custom attributes (e.g. Microdata) in React

落花浮王杯 提交于 2019-11-28 09:04:17
The site I am developing makes use of Microdata (using schema.org). As we are shifting development over to use React to render our views I have hit a blocker where React will only render attributes in the HTML spec however Microdata specifies custom attributes such as itemscope . As I'm relatively new to React and haven't had chance to fully understand the core just yet, my question is what would be the best way to extend the functionality of react.js to allow for defined custom attributes, e.g., Microdata? Is there a way of extending the attributes/props parser or is it a job for a mixin

Schema.org AggregateRating markup when ratingValue is Empty

混江龙づ霸主 提交于 2019-11-28 08:36:36
问题 I am implementing structured data into an app with the AggregateRating markup. The problem is that when 0 ratings are present the rating value is empty. I get the following error when using Google Structured Data Testing Tool. Field ratingValue may not be empty. <div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating"> <meta itemprop="reviewCount" content="0"> <meta itemprop="ratingValue" content=""> ... </div> The app uses the default 1 to 5 rating scale. Is

How to approach schema.org microdata markup in an product offers aggregation page

血红的双手。 提交于 2019-11-28 04:27:33
问题 Example page is: http://www.uswitch.com/mobiles/deals/apple_iphone_4s/ This page aggregates all contract deals for a specific handset, I am looking to add schema.org microdata on the rows and from what I understand, it appears I should markup each row with schema.org/Offer This will result in something like: Offer [itemOffered: x , price: a, ... other variations...] ... Offer [itemOffered: x , price: b, ... other variations...] Would this be the best way to go about this? Google guidelines

Microdata, RDFa or JSON-LD Appropriate or best usage?

烈酒焚心 提交于 2019-11-28 03:26:40
I have been wondering which of those formats is "best"? Schema.org, Microdata, and RDFa are bit of a pain to implement. They can break validation and require quite an effort to put into documents. JSON-LD is, at last for me, a way better to implement structured data. But does it work? What level of support is there for it (at least by Google)? unor Schema.org is a vocabulary that can, like any other vocabulary, be used in many forms. The website http://schema.org/ has examples using Microdata and the RDF syntaxes RDFa and JSON-LD , but these are not the only syntaxes it can be used with. You

How to use Microdata throughout a LocalBusiness website

自古美人都是妖i 提交于 2019-11-28 01:33:57
I am getting involved into Microdata and rich snippets for leading better search results. I am kind of confused about where to set the itemscope for a LocalBusiness and if it is good or bad to have it repeated through out the whole website over and over. For example on the header that repeats all over the site, page after page, I have the business name, telephone, address, logo, description, etc. Is it good to repeat the same itemscope over and over on each page, or it should be only added to one page, for instance only on the index or only on the contact page? Simplified version (no address,