microdata

Using a different image for microdata that isn't displayed in the article?

女生的网名这么多〃 提交于 2019-11-30 09:47:18
问题 I'm working on a website that has a bunch of articles. I'm looking to find a way to add an image that is invisible without putting it inside a hidden div. When users add an article, there is a "main" image of the specific proportions that the users upload (which I'd like to use for microdata). There are also other images that get tossed in a carousel that they upload. At the moment the only way I can get the microdata testing tool to use my image is by doing the following: <div class="hidden"

Is 'itemprop' without parent 'itemscope' valid? Does it create an item?

人走茶凉 提交于 2019-11-30 09:23:59
问题 In the following example, Microdata’s itemref attribute is used to add the email property to the Person item (both from a fictive Microdata vocabulary). <body> <div itemscope itemtype="http://example.org/Person" itemref="orphan"> <span itemprop="name">Alice</span> </div> <div id="orphan" itemprop="email"> alice@example.com </div> </body> Is this valid Microdata? If I understand the "Associating names with items" algorithm correctly, the " itemref ed" properties are not moved but copied ,

Microdata on tables

故事扮演 提交于 2019-11-30 08:34:38
问题 I’m new to Microdata and have a problem with itemscope within a table . For example assume I‘ve got a person object and in the table I’m showing Name, Street and City columns. <table> <tr itemscope itemtype="http://schema.org/Person"> <td itemprop="name">Name</td> <td itemprop="streetAddress">123 main</td> <td itemprop="addressCountry">USA</td> </tr> </table> Note that the streetAddress and addressCountry are supposed to be children of an address property. Yet you can not add a parent div to

What microdata should I use for a blog?

故事扮演 提交于 2019-11-29 20:37:39
The blog is basically a page that lists the summary of like 10 articles, each item title linking to the full article page. I've seen: http://schema.org/Blog http://schema.org/Article (or maybe http://schema.org/BlogPosting ?) Where do I use these? Right now on the individual article page I have: <article itemscope itemtype="http://schema.org/Article"> <h1 itemprop="name"> <a href="..."> A title... </a> </h1> <div itemprop="articleBody"> bla bla </div> ... </article> Which is ok I guess, but what do I do on the article index page? Do I add these to each article and add itemscope itemtype="http:

microformats, rdf or microdata

眉间皱痕 提交于 2019-11-29 19:50:52
Is there any difference between using one of this technologies? I'm building now a site using HTML5, and I'm having hard time to decide which one of them to use. I cannot see any difference between them, else the syntax size, which I'm not quite sure is an advantage for the microformats side. cygri *Edit, May 2015: Times have changed... again . Schema.org seems the way to go, using either microdata (W3C note) or RDFa (W3C recommendation), where the RDFa Lite variant is easiest to learn. Meanwhile recently Microformats released a new version as well, which nobody is paying attention to

Rich Snippets : Microdata itemprop out of the itemtype?

耗尽温柔 提交于 2019-11-29 18:11:49
I've recently decided to update a website by adding rich snippets - microdata. The thing is I'm a newbie to this kind of things and I'm having a small question about this. I'm trying to define the Organization as you can see from the code below: <div class="block-content" itemscope itemtype="http://schema.org/Organization"> <p itemprop="name">SOME ORGANIZATION</p> <p itemprop="address" itemscope itemtype="http://schema.org/PostalAddress"> <span itemprop="streetAddress">Manufacture Street no 4</span>, <span itemprop="PostalCode">4556210</span><br /> <span itemprop="addressLocality">CityVille<

Using a different image for microdata that isn't displayed in the article?

允我心安 提交于 2019-11-29 16:42:05
I'm working on a website that has a bunch of articles. I'm looking to find a way to add an image that is invisible without putting it inside a hidden div. When users add an article, there is a "main" image of the specific proportions that the users upload (which I'd like to use for microdata). There are also other images that get tossed in a carousel that they upload. At the moment the only way I can get the microdata testing tool to use my image is by doing the following: <div class="hidden"> <img itemprop="image" src="link/to/image.jpg" /> </div> What I'd like to do is use a meta tag, but

Inline Microdata content displays different from same markup in JSON-LD

余生颓废 提交于 2019-11-29 16:36:15
I have an issue about Microdata. Usually I insert Microdata as inline attributes in pages, but I decided to separate HTML code and structured data, so I starting creating inline JSON-LD. When testing pages with Google testing tool I noticed some differences between what Google shows depending on structuring Microdata. The itemscope is WebPageElement and the itemprop is text : text is fetched from database and so it can contain HTML tags because it is generated using text editor. HTML code used (the first div with itemprop="text" is not present in JSON-LD): <div class="text" itemprop="text">

How to extract/parse HTML using Microdata

无人久伴 提交于 2019-11-29 15:36:35
问题 I am pretty new to Microdata. I have a HTML string with Microdata. I am trying to figure out if it's possible to extract the required information dynamically using Microdata with JS or jQuery. Has anyone done this before? Example HTML string: I am trying to get the 'content' corresponding to itemprop 'ratingValue' for item prop-name 'Blendmagic' <html> <div itemscope itemtype="http://schema.org/Offer"> <span itemprop="name">Blendmagic</span> <span itemprop="price">$19.95</span> <div itemprop=

Is 'itemprop' without parent 'itemscope' valid? Does it create an item?

你说的曾经没有我的故事 提交于 2019-11-29 15:36:05
In the following example, Microdata’s itemref attribute is used to add the email property to the Person item (both from a fictive Microdata vocabulary). <body> <div itemscope itemtype="http://example.org/Person" itemref="orphan"> <span itemprop="name">Alice</span> </div> <div id="orphan" itemprop="email"> alice@example.com </div> </body> Is this valid Microdata? If I understand the "Associating names with items" algorithm correctly, the " itemref ed" properties are not moved but copied , which leaves this "orphan" itemprop without an item parent. There are three valid cases for itemprop values