Can I Use Multiple ItemProps in a Span Tag for schema.org Rich Snippets?

The usual HTML way would be to use one attribute and separate several values with space characters. Looking into the Microdata specification, you’ll notice that this is the case for the itemprop attribute, too: The itemprop attribute, if specified, must have a value that is an unordered set of unique space-separated tokens […] So this … Read more

What is the correct use of schema.org SiteNavigationElement?

If SiteNavigationElement is meant for the whole navigation (i.e., a navigation link list), your first example is correct. If SiteNavigationElement is meant for a single navigation entry (i.e., a link in the navigation link list), your second example is correct. I think Schema.org doesn’t unambiguously define which variant is meant, as they only say: A … Read more

Microdata or JSON-LD? I’m confused

Consumers that support Microdata support Microdata, no matter if or where Microdata is specified. It’s conceivable that new consumers might decide not to support it, but the syntax is still very popular and still part of WHATWG’s HTML Living Standard, so it’s probably not going to vanish. About the consumer Google Some years ago, JSON-LD … Read more

Tool for testing Schema.org markup [closed]

This one came to my attention recently. linter.structured-data.org I like that it generates a preview when the Google Rich Snippet tool reports “Insufficient data to generate the preview.” The structured-data tool also generates a more structured, almost graphical result, which makes the results a bit easier to understand.

Best JSON-LD practices: using multiple elements?

There is no benefit in having single or multiple data blocks, other than limitations around how you might store and manage schema data in your website. For example, you might need them separate if different components within your website are responsible for generating each data block independently. Alternatively, if your website is able to manage … Read more

What’s a `{jsonObj}` in a `head` section do?

In your example, the script element is used as data block, which contains JSON-LD (type=”application/ld+json”). JSON-LD is a RDF serialization. It allows you to publish Linked Data (or structured data) using JSON. In your example, the vocabulary Schema.org is used (“@context”: “http://schema.org”). This structured data can be used by any interested consumer. Prominent consumers are … Read more