microdata

Why does Google Testing Tool use the “id” attribute to generate a URL for the Microdata item?

☆樱花仙子☆ 提交于 2019-11-26 17:52:04
问题 I'm using some Microdata to describe a blog post, and I'm surprised by the value return for Schema.org’s BlogPosting by the Google Developers Testing Tool. I would have expected it to be the itemprop url , not a merge of the website URL and the item id . Am I doing something wrong, or is it only a Google display issue? <div itemscope="itemscope" itemprop="blogPost" itemtype="http://schema.org/BlogPosting" id="foobar"> <a itemprop="url" href="/realone">real</a> </div> Value returned by https:/

RDF and microdata future

风格不统一 提交于 2019-11-26 16:54:04
问题 What should we expect from RDF and microdata in the future? Is microdata able to completely replace RDF, is this the goal? Or are they meant to exist side by side? Should we have both on our sites once microdata becomes more famous? Update: I did not intend to start a discussion, I only want to know if microdata is supposed to replace RDF or they are supposed to coexist. If they are supposed to coexist I will be happy to read some guidelines and possibly research based predictions. 回答1: You

Hide Microdata property value in &#39;content&#39; attribute?

萝らか妹 提交于 2019-11-26 14:56:40
问题 I work on a website that recently had Schema.org markup added to it, but I think it is being used wrong. Schema.org gives the example of <span itemprop="name">Generic Name Here</span> Our website implemented it in the following way <span itemprop="name" content="Generic Name Here"></span> Is the second way, our way, considered cloaking? We display the data to the user but at a different point and it is not marked up with itemprop . 回答1: In HTML5, the content attribute is only allowed on the

Does Schema.org markup work if markup is dynamically built with JavaScript?

穿精又带淫゛_ 提交于 2019-11-26 13:50:33
I have a page where some events are dynamically loaded by reading some JSON with JavaScript. I build a div for every event with the Event Schema.org markup. Google's testing tool doesn't read this markup. Is it because of an error in the markup, or is it because of the dynamic loading? The HTML code of one Event is: <div class="evento well" itemscope itemtype="http://schema.org/Event"> <meta itemprop="startDate" content="2015-03-20T20:00:00.000Z"> <meta itemprop="endDate" content="2015-01-21T20:00:00.000Z"> <div class="dataEvento"> <div class="dayWeekEvento">venerdì</div> <div class=

HTML5 microdata: span content?

感情迁移 提交于 2019-11-26 10:00:33
问题 I have read the HTML5 specification, the microdata specification, and the WHATWG HTML5 (with microdata) specification. These are well written and easy to understand. But now I read the schema.org Book specification, and came across snippets like the following: <span itemprop=\"price\" content=\"6.99\">$6.99</span> <span itemprop=\"inLanguage\" content=\"en\">English-language</span> <span itemprop=\"name\" content=\"Tolkien, J. R. R. (John Ronald Reuel)\"> J. R. R. Tolkien</span> Apparently

How to set a microdata image property, without letting the browser download the image?

若如初见. 提交于 2019-11-26 09:57:15
问题 I have a website on which images are displayed. The images which are displayed are resized and then cached by the web application. But the cache is volatile. For the microdata I want to link to non-volatile images. My current solution for this is <img src=\"cache/image-resized.jpg\" /> <img src=\"static/image.jpg\" itemprop=\"image\" style=\"display:none;\"/> This works. Google interprets the microdata correctly and the resized image is displayed. But the users browser also downloads the

Why use Schema.org microdata to mark up web page elements?

随声附和 提交于 2019-11-26 08:37:43
问题 I understand why and how to use Schema.org to add microdata to your site, this is not a question about that. The question is why Schema.org has support for certain things that can be marked up with simple HTML5 . Among these are Types WebPage and WebSite I can see why WebPage and WebSite would be needed, for example, to reference the page/site of a certain organization in a link, but there\'s no need to mark up your own page with this—the <html> tag does this. SiteNavigationElement Why not

Is there a microdata tag to designate whether a value is a number, string, or bool?

穿精又带淫゛_ 提交于 2019-11-26 07:49:44
问题 There is an HTML5 attribute called datetime that indicates that a value type is a datetime. But I see no way to indicate whether a itemprop value in span tag is a string, bool, or number. Am I right that there is no way to include this kind of information in microdata? If so, is there some reason why this capability should be omitted? 回答1: The Microdata specification only differs between these types of values, which get derived from the HTML5 markup: item (if an element has an itemprop and an

Can Microdata be applied on any type of HTML element? [closed]

主宰稳场 提交于 2019-11-26 07:49:18
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . In all examples around the web I see Microdata properties itemscope and itemtype being applied to div elements, like so: <div itemscope itemtype =\"http://schema.org/Movie\"> <h1 itemprop=\"name\">Avatar</h1> <span>Director: <span itemprop=\"director\">James Cameron</span> (born August 16, 1954)</span> <span

How to implement “mainEntityOfPage” to this specific site?

ⅰ亾dé卋堺 提交于 2019-11-26 07:38:57
问题 Please take a look here: https://developers.google.com/structured-data/testing-tool?url=https%253A%252F%252Fglamourina.net%252Fen%252F How can I correctly add mainEntityOfPage to this site? In Google documentation example I see something like this: <div itemscope itemtype=\"http://schema.org/NewsArticle\"> <meta itemscope itemprop=\"mainEntityOfPage\" itemType=\"https://schema.org/WebPage\" itemid=\"https://google.com/article\"/> But this is a single author blog. And it features blogPosts.