microdata

Html tags inside json/ld articleBody value?

余生长醉 提交于 2020-01-05 04:05:13
问题 If I want to create an Article schema.org type with a json/ld format, should I have to put the html tags inside the articleBody 's value? Because I saw that if I use microdata, in the Structured Data Tool it appears the articleBody as a plain text without html tags. Thanks 回答1: Just plain text: "articleBody": "You can paste your entire post in here, and yes it can get really really long." Sources: http://jsonld.com/article/ https://developers.google.com/search/docs/data-types/articles 来源:

Categories for Product in schema.org?

∥☆過路亽.° 提交于 2020-01-03 09:25:41
问题 Using as a reference: https://support.google.com/webmasters/answer/146750?hl=en You will notice under 'Product' that there is a category Property, and furthermore there's an example on down the page: <span itemprop="category" content="Hardware > Tools > Anvils">Anvils</span> which I've mimic'd exactly: <span itemprop="category" content="kitchen sinks > stainless steel sinks > undermount">undermount</span> Yet when I test it with Google's structured data tool, I get the error: Error: Page

Schema.org Organization: url, logo in one place and social links in another

邮差的信 提交于 2020-01-02 13:56:09
问题 So I just came across the 'sameAs' for schema.org's organization type which lets you link your social profiles. My problem is my url and logo are in one spot (header) while the social links are in other (footer). <div class="container custom-top" itemscope itemtype="http://schema.org/Organization"> <a class="custom-logo" itemprop="url" href="/"> <img itemprop="logo" alt="sitename" height="40" src="/assets/img/logo-main.png" width="161"> </a> </div> My social links are in a completely

Schema.org Organization: url, logo in one place and social links in another

孤人 提交于 2020-01-02 13:56:00
问题 So I just came across the 'sameAs' for schema.org's organization type which lets you link your social profiles. My problem is my url and logo are in one spot (header) while the social links are in other (footer). <div class="container custom-top" itemscope itemtype="http://schema.org/Organization"> <a class="custom-logo" itemprop="url" href="/"> <img itemprop="logo" alt="sitename" height="40" src="/assets/img/logo-main.png" width="161"> </a> </div> My social links are in a completely

'itemprop' and 'rel' attributes on same element

百般思念 提交于 2020-01-02 04:44:06
问题 Is it valid to use the itemprop attribute and the rel attribute on the same element? The example from Google’s Site Name documentation contains <link rel="canonical" href="https://example.com/" itemprop="url"> which gives this error in https://validator.w3.org/nu/: Attribute rel not allowed on element link at this point. 回答1: It depends on the specification. Microdata, where the itemprop attribute is coming from, is defined by WHATWG’s HTML as well as by W3C’s HTML Microdata. The WHATWG

dtstart warning on UserComments schema

房东的猫 提交于 2020-01-02 02:00:15
问题 I have the following code for rich snippet on comments: <ul itemscope itemtype="http://schema.org/UserComments"> <li id="comment-1" class="comment"> <span itemprop="name" class="author">Author 1</span> <p itemprop="commentText">Bla Bla Bla</p> <time itemprop="commentTime" content="2012-07-29" datetime="2012-07-29T05:55+00:00" title="Jul 29, 2012 5:55">2 days ago</time> </li> <li id="comment-2" class="comment"> <span itemprop="name" class="author">Author 2</span> <p itemprop="commentText">yada

Schema.org <head> HTML markup: can I just use the meta tags?

给你一囗甜甜゛ 提交于 2020-01-01 15:41:46
问题 So I was looking at Schema.org. Do I need to change my <html> tag to this <html itemscope itemtype="http://schema.org/Article"> or can I just use only the meta tags within my <head></head> block? <meta itemprop="name" content="The Name or Title Here"> <meta itemprop="description" content="This is the page description"> <meta itemprop="image" content="http://www.example.com/image.jpg"> 回答1: Properties need to belong to an item. You create an item with the itemscope attribute (and the itemtype

Can I use multiple itemtypes in one itemscope for Schema.org? [duplicate]

佐手、 提交于 2020-01-01 04:45:10
问题 This question already has answers here : Correct way to use multiple itemtypes in Microdata (2 answers) Closed last year . I am wondering if I can use multiple itemtypes inside one item scope. For example I have this at the moment: <body id="home" itemscope itemtype="http://schema.org/WebPage"> <div class="wrapper" itemscope itemtype="http://schema.org/ProfessionalService"> <p itemprop from professional service></p> <p itemprop from web page></p> </div> </body> When I do a structured data

Is it okay to use same schema.org markup twice on one page?

≯℡__Kan透↙ 提交于 2019-12-31 04:40:05
问题 On a product page I have two aggregated ratings for one product at different places, which means they contain identical information. I want to have them twice on that page due to ux reasons, but I'm not sure if I can markup them with schema.org everytime or if this would be a useless duplication. Wondered if there is a solution with itemref but in my opinion it's not helpful for this task. 回答1: Unless you use itemid , consumers can’t be sure that two (or more) items are (about) the same thing

2 itemprops for 2 colors of the same product?

你离开我真会死。 提交于 2019-12-31 04:05:51
问题 In a product with two colors, is it better to use two itemprop items or just one? <meta itemprop="color" content="red" /> <meta itemprop="color" content="black" /> Or <meta itemprop="color" content="red and black" /> I am using https://schema.org/ vocabulary. 回答1: From the Microdata perspective, both ways are possible. The difference is that you are adding two values in the first case, and one value in the second case. From the Schema.org perspective, we’d have to understand how this property