schema.org

JSON-LD and Microdata on the same page?

北城余情 提交于 2019-11-28 00:04:29
I have both Micro Data and JSON-LD on my e-commerce product pages, describing the same thing (products in my case). For reasons beyond the scope of this question, I cannot remove either of the two formats. I am wondering: Is this a problem for Google? The structured data testing tool does display two items (products) instead of one. If one property, let's say the name of the product, is slightly different between the two formats, would any of the two formats, for example, JSON-LD take priority? unor The problem is that a consumer would think that different things are described (or more

Breadcrumb with Schema.org not showing in Google Rich Snippets testing tool

我是研究僧i 提交于 2019-11-27 22:32:29
问题 I have tested the Schema.org breadcrumb example with Google Rich Snippets testing tool. <div itemprop="breadcrumb"> <a href="category/books.html">Books</a> > <a href="category/books-literature.html">Literature & Fiction</a> > <a href="category/books-classics">Classics</a> </div> The result is that it is not recognized by the tool. So, is there a bug or is there a syntax problem? If so, what is the correct syntax? 回答1: Your question is a bit the same with this one How to implement schema.org

The correct approach to markup “keywords” of a blog post by using HTML5 and Microdata?

倾然丶 夕夏残阳落幕 提交于 2019-11-27 18:46:12
问题 The keywords property from Schema.org, as it being in plural form suggests, seems to imply its value should be a line of comma-separated text . Like the following example: <p itemprop="keywords">lorem, ipsum, dolor, sit, amet</p> That reminds me of the <meta name="keywords" content="lorem, ipsum, dolor, sit, amet"> tag we used to put within <head></head> for SEO reason. However, from semantics' perspective, I think the above example is incorrect because keywords should be a list of words .

HTML5 semantic markup for blog post tags and categories

孤者浪人 提交于 2019-11-27 16:25:10
问题 Many blogs use the concept of "tags" and "categories" to add metadata to a post. What is the best practice for semantic markup for this information, such that a machine reading the blog post could easily identify the tags? Currently I add "tag" to the rel attribute on the link, e.g. <a rel="tag" class="tag" href="/tags.html#site-configuration">#site-configuration</a> I suppose one could use Dublin Core's html format for keyword: <meta name = "DC.Subject" content = "site-configuration"> and

HTML 5 Page without main <header>?

浪尽此生 提交于 2019-11-27 16:19:32
Is it bad to nave no <header> ? I have this basic structure but I am thinking about wrapping a header arround everything between the body start and the content because the header has also this nice shema.org markup attached. Good Idea? Just because sometimes the header is not there but the navbars actually contain the brandname and are sort of headers themseves. if I do this how should I markup whats the <header> right now? A section inside a header is not valid right? Just a normal <div> I guess. <body> <div class="nav1"><h1>brandname</h1><nav>...</nav></div> <header><h1>brandname</h1><p

Schema.org NewsArticle: invalid value for logo property

这一生的挚爱 提交于 2019-11-27 16:14:00
I try to markup a little section in my code as NewsArticle but I can't get it to validate. If I do this <div itemscope itemprop="publisher" itemtype="https://schema.org/Organization"> <span itemprop="name">My Company</span> </div> the validator complains that there is no logo . And if I add a logo like this <div itemscope itemprop="publisher" itemtype="https://schema.org/Organization"> <img itemprop="logo" src="https://www.mysite.de/resources/assets/71/small/my_logo_web.png" /> <span itemprop="name">My Company</span> </div> the validator complains that the attribute contains an invalid value.

How do I relate items in schema.org?

坚强是说给别人听的谎言 提交于 2019-11-27 16:06:41
问题 Suppose I have this simple HTML page about a guy getting a job: <!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <title>New Job for John Doe</title> </head> <body> <h1>New Job for John Doe</h1> <p>This week John Doe accepted an offer to become a Software Engineer at MITRE. John graduated from MIT in 2005 with a BS in Computer Science. He previously worked at a small company near Boston. Blah, blah, blah.</p> <p>The MITRE Corporation is a not-for-profit organization chartered to work in

Microdata or JSON-LD? I'm confused

放肆的年华 提交于 2019-11-27 09:58:05
问题 I haven't found a clear and updated answer, even after googling for a few hours, so here it goes: I am aware of the advantages and disadvantages of both Microdata and JSON-LD. I also know that Microdata was dropped from W3C (and consequently from the browsers' API). What I'm not sure about is that how it will affect any site where Microdata is used specifically for SEO purpose. Does Google support JSON-LD for SERPs? What format does it recommend to use? I am looking for updated answers - not

Schema.org/Microdata markup for list of recent posts without providing “author” / “publisher”?

与世无争的帅哥 提交于 2019-11-27 09:54:17
The following code shows a list of links to recent posts on an experimental blog site I am playing with. The problem is that this fails Google's Structured Data Testing Tool because it is missing required items such as author and publisher . But I don't want to show these for recent posts and I don't want to show them for every blog post either. What should I do? Get rid of the structured data? Put the required stuff in and hide it with CSS? Or leave as is? <section> <header> <h4 class="h4-padding">Recent Posts</h4> </header> <ul> <li> <article itemprop="blogPost" itemscope itemtype="http:/

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

笑着哭i 提交于 2019-11-27 09:44:19
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://developers.google.com/structured-data/testing-tool/ : BlogPosting: http://www.example.com/foobar url: