microdata

How to use Microdata to represent similar products on the ItemPage?

跟風遠走 提交于 2019-12-24 08:09:34
问题 I am trying to use Microdata to define my website using the Schema.org definitions. Below is my current HTML markup: <body itemscope itemtype="http://schema.org/ItemPage"> <link itemprop="url" href="https://example.com/i/10" /> <main role="main"> <!-- Show the main product of the page --> <div itemprop="mainEntity" itemtype="http://schema.org/Product" itemscope> <meta itemprop="name" content="My Main Product 10 Name" /> <!-- ... more properties that describes current product --> </div> <!--

Is it good to put HTML5 Microdata on preview blocks?

元气小坏坏 提交于 2019-12-24 03:58:06
问题 Consider this example: <section id="news_block_left" class="block" itemscope="" itemtype="http://schema.org/ItemList"> <a href="http://dev.com/index.php?controller=NewsList" title="News" itemprop="url"> <h2 class="title_block" itemprop="name">News</h2> </a> <div class="block_content"> <ul class="news-list"> <li itemprop="itemListElement" itemscope="" itemtype="http://schema.org/NewsArticle"> <a href="http://dev.com/index.php?id_news=7&controller=News" title="News Title1" itemprop="url"> <span

Multiple Time Elements with Microdata

十年热恋 提交于 2019-12-24 01:53:44
问题 I have a definition list representing my business' opening hours: <dl> <dt>Monday - Friday</dt> <dd>8:30am to 5:30pm</dd> <dt>Saturday - Sunday</dt> <dd>9:00am to 5:00pm</dd> <dt>Holidays</dt> <dd>Closed</dd> </dl> This seems like a good, structured way to arrange this content. But perhaps I am wrong? I am wondering how I would use the time element to represent the opening hours? Ultimately, I was looking at doing something like this: <time itemprop="openingHours" datetime="Mo,Tu,We,Th,Fr 8

Schema.org practices for small company: 'Organization' and 'WebSite' in JSON-LD on every page, Microdata for everything else

删除回忆录丶 提交于 2019-12-24 00:42:53
问题 I'm wondering how to build my Schema.org. I'm using mixed approach with both JSON-LD and Microdata elements. I don't use them to describe one thing in 2 different ways. I need some guidelines about what to include. For now I have description of our company on every page: <script type="application/ld+json"> { "@context" : "http://schema.org", "@type" : "Organization", "url" : "https://our.url", "logo" : "https://our.url/logo2.svg", "contactPoint" : [{ "@type" : "ContactPoint", "telephone" : ""

Properties outside of 'itemscope' are assumed to belong to 'WebPage', but this creates invalid Microdata

时光毁灭记忆、已成空白 提交于 2019-12-23 20:23:28
问题 Microdata allows elements with itemprop but without parent itemscope , as long as they are referenced by an itemref somewhere on the page. (See my question Is 'itemprop' without parent 'itemscope' valid? Does it create an item?). So this example should be valid: <body> <div itemprop="email" id="orphan"> alice@example.com </div> <div itemscope itemtype="http://example.org/Person" itemref="orphan"> <span itemprop="name">Alice</span> </div> </body> Now, when someone is using the Schema.org

Rich Snippets / Micro Data for Products: Error: Incomplete microdata with schema.org

喜夏-厌秋 提交于 2019-12-23 20:09:32
问题 I'm getting an 'Error: Incomplete microdata with schema.org.' message when testing the markup with Google's testing tool (http://www.google.com/webmasters/tools/richsnippets?q=uploaded:8004e2bf685980a2f0ffadd5c52b2d5f). I've simplified my code as much as possible, am I missing a certain 'required' type to get rid of this error? This is the only data I have available on my product pages at the moment. Thanks in advance! <div itemscope itemtype="http://schema.org/Product" id="productdetail">

Breadcrumb microdata help

為{幸葍}努か 提交于 2019-12-23 17:40:31
问题 I'm trying to help Google generate appropriate breadcrumb details for my website. I am currently using this as the breadcrumb: <div id="breadcrumb"> <span class="crust" itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb"> <a href="http://www.radonsystems.net" class="crumb" rel="up" itemprop="url"> <span itemprop="title">Home</span> </a> <span class="arrow"> <span>»</span> </span> </span> <span class="crust" itemscope="itemscope" itemtype="http://data-vocabulary.org

Adding microdata or schema.org for breadcrumb SEO in Drupal 7

别来无恙 提交于 2019-12-23 09:51:37
问题 I'm currently a little confused about microdata and schema.org. Is microdata and schema.org the same? I read the Google and Microsoft documentation, but that didn't helped me to get the difference between this two names. So far I understood this I have produced this HTML code: <span itemscope itemtype="http://data-vocabulary.org/Breadcrumb"> <a href="/" itemprop="url"><span itemprop="title">My Page</span></a> </span> <span itemscope itemtype="http://data-vocabulary.org/Breadcrumb"> <a href="

schema.org product availability tags markup

故事扮演 提交于 2019-12-23 09:32:41
问题 Which one is correct? <link itemprop="availability" href="http://schema.org/InStock"> ​<meta itemprop="availability" content="InStock" /> <span itemprop="availability" content="in_stock"></span> I checked official schema documentation and in examples found all of them. I suppose all of them will work, but at the moment, is there any preferred standard? 回答1: Using span with the content attribute is invalid . Neither HTML5 nor Microdata allow the content attribute for span. Using meta is

Writing microdata programmatically (C# / ASP.NET)

纵饮孤独 提交于 2019-12-23 05:28:00
问题 Is it possible to write 'value-less' attributes to WebControl types? i.e. going from 1 = var div = new WebControl(HtmlTextWriterTag.Div); 2 = ??? 3 = Rendered output: <div itemscope></div> 回答1: You can created control (E.g. SomeMicroDataWebControl) derived from WebControl and overrride method "Render". In "Render" you define how your control will look like on page. Then add this class to a page or another control. 回答2: If you're using ASP.NET MVC take a look at my blog post: ASP.NET MVC: Add