Skip to main content
16 votes
Accepted

How to specify publisher in schema.org's Article structured data?

Something like this, though of course other properties are required for this to meet Google's requirements for article features in search results. <div itemscope itemtype="http://schema.org/...
GDVS's user avatar
  • 7,795
16 votes
Accepted

Why is my itemprop='image' markup incorrect?

schema.org/BlogPosting image permits ImageObject and URL, however Google only permits ImageObject, hence the error. The intended markup is: <!-- my code --> <div itemprop="image" itemscope ...
grg's user avatar
  • 3,207
15 votes
Accepted

BlogPosting Publisher Logo 'logo.itemtype has an invalid value' on Google Structured Data Testing Tool

Turns out, because BlogPosting is one of the types supported by Google as a possible Rich Snippet, they apply more validation: Google Search Documentation Guidelines for Articles This requires an ...
Arth's user avatar
  • 619
13 votes
Accepted

Which one does Google prefer, Microdata or JSON-LD?

The document that recommends JSON-LD is more recent and it clearly states that Google recommends using JSON-LD where possible (over Microdata) specifically for the following reasons: "The markup does ...
marcanuy's user avatar
  • 2,644
11 votes

BlogPosting Publisher Logo 'logo.itemtype has an invalid value' on Google Structured Data Testing Tool

A brilliant and helpful answer by @Arth above. To complement the answer above (not compete with it), here is the same Structured Data using the same schema.org vocabulary, but this time in JSON-LD: ...
Rounin's user avatar
  • 2,335
9 votes
Accepted

schema.org/Book with multiple authors using JSON-LD

your code contains error, thats why two authors aren't recognized. If you have more then one author, you should add them as list without entity duplication. Here the correct code: <script type="...
Evgeniy's user avatar
  • 10.1k
9 votes
Accepted

Does itemprop have a different meaning on links vs. span tags?

What the spec says Yes, that behaviour is correct. Section 5.4 of the W3C Microdata spec describes which value gets used. In most cases, the element’s content gets used as itemprop value, but in ...
unor's user avatar
  • 21.8k
9 votes

Can I mix Microdata and JSON-LD on the same page for different entity

It should be fine to use different syntaxes on the same page. It has one drawback, though: If you want to connect entities specified in different syntaxes, you can’t nest them. You have to use URIs ...
unor's user avatar
  • 21.8k
5 votes
Accepted

How to find correct schema definitions for my website

The website http://schema.org/ is the relevant and the only canonical source for Schema.org types and properties. Type vs. property. A type represents a thing, a property is for providing information ...
unor's user avatar
  • 21.8k
5 votes

Using both JSON+LD and Microdata to markup the exact same information on a page

If you provide structured data about the same thing in different syntaxes, you should convey that it’s actually the same thing, not different things. You can do this by giving all representations the ...
unor's user avatar
  • 21.8k
4 votes

Can I use <link> tags in the body of an HTML document?

This question was asked and answered some time ago, and things have improved a quite a bit since then. You can use <link> tags in the <body> of an HTML document as long as the <link> ...
zgreen's user avatar
  • 141
4 votes

How to specify publisher in schema.org's Article structured data?

Schema.org expects an Organization item as value for the publisher property, but you provide a string value ("MyCorp"). If you want to follow Schema.org’s expectation (which is just a recommendation,...
unor's user avatar
  • 21.8k
4 votes
Accepted

Correct way to use sameAs itemprop in Microdata

If they have visible links to these social media profiles, it’s the best practice to mark up these links, instead of repeating the links and marking up the "invisible" variant: <div itemscope ...
unor's user avatar
  • 21.8k
4 votes
Accepted

Is there a Microdata version of JSON-LD’s "@id"?

Yes, the itemid attribute (W3C, WHATWG). Example: <div itemscope itemtype="http://schema.org/Person" itemid="/team/alice#i"> <!-- this person (not the page about this person) has the URI "...
unor's user avatar
  • 21.8k
4 votes
Accepted

Adding Schema.org’s "WPHeader" with Microdata

Schema.org I have the impression that many WordPress theme creators add these types. My guess why: These are one of the few types that can be added without knowing the site’s content. The header is ...
unor's user avatar
  • 21.8k
4 votes
Accepted

Is there a representative logo for Structured Data which can be used on icons?

Semantic Web The W3C provides Semantic Web logos. Here are the versions without the W3C logo: (usage guidelines) But in my experience, these logos are used to represent the concept, they don’t ...
unor's user avatar
  • 21.8k
3 votes
Accepted

Multiple Schema.org telephone values

Yes, providing the property multiple times is the correct way to do this in Microdata. If you want to provide data about the telephone number, you could use the contactPoint property with a ...
unor's user avatar
  • 21.8k
3 votes

Schema.org or Data-Vocabulary.org for breadcrumbs?

Up-to-date answer, January 3rd, 2017 data-vocabulary.org - offers microdata for breadcrumbs for quite some time now. Simply use it like this: <div class="breadcrumb"> <span itemscope ...
Derk Jan Speelman's user avatar
3 votes
Accepted

A schema.org schema for a menu item in a restaurant

Schema.org has release a new Restaurant Menu Markup That is really good news! If you've been waiting for a proper method which allows the markup of multiple Restaurant Menus with along Menu Sections ...
Adriano Monecchi's user avatar
3 votes

Spammy microdata penalty reconsideration rejected

As the first, your example page https://www.fantasticservices.com/professional-oven-and-bbq-cleaning/ includes two different, not nested JSON-LD snippets. This is a massive cause for bad ...
Evgeniy's user avatar
  • 10.1k
3 votes

Should I add Microdata on the product listing page or on the product detail page?

Ideally on both. But if you have to choose, provide it on the detail page, because search engines that offer a product rich result will of course show this for detail pages, not for listing pages. ...
unor's user avatar
  • 21.8k
3 votes
Accepted

Microdata & JSON-LD Conflict on the same page or not?

Gary said by using JSON-LD and Microdata on same page does not create any problem. Google search console will display both markup, but Google may be merge it or will prefer JSON-LD markup over ...
Goyllo's user avatar
  • 5,507
3 votes
Accepted

Should itemprop be on innermost HTML tag?

It depends on the element. In your example, the name value isn’t the same. In the first snippet it’s the string "John Doe", in the second snippet it’s the relative URL Joe Doe (i.e., not what you ...
unor's user avatar
  • 21.8k
2 votes

New required mainEntityOfPage for article structured data

What is this property? It's supplementary to the url and sameAs properties, as described in the mainEntity background. It has an idiosyncratic name as it may be applied to all items of type Thing. ...
vhs's user avatar
  • 153
2 votes

Google Testing Tool reports error on Schema.org "location"

Although it says on schema.org that Event.location can be either Place or PostalAddress, the google documentation says otherwise. Event.location is required and has to be a Place location: Place, ...
Beebee's user avatar
  • 121
2 votes

Why is my itemprop='image' markup incorrect?

I had a similar problem with Google Structured Data Tester marking my images as invalid. Apparently it doesn't accept images where the source is a localhost domain. As soon as I deployed to the ...
Mike's user avatar
  • 186
2 votes

Schema.org in Microdata or in JSON-LD?

You can refer to the organisation markup using itemref. Add an id to the organisation markup, then use itemref="yourid" at the top of your markup which needs to include the organisation. Don't ...
grg's user avatar
  • 3,207
2 votes

Isn't JSON-LD a form of hiding schema/microdata?

Not at all. The HTML content data is not hidden. Only its semantic descriptors. The same descriptor types and information that would equally be hidden from the viewer as attributes of the HTML ...
Rob's user avatar
  • 4,613
2 votes
Accepted

Best way to define 'mainEntityOfPage' in Microdata?

I described the different ways how mainEntityOfPage can be specified in an answer on Stack Overflow. The difference between your two examples is that the second one creates an item (with the type ...
unor's user avatar
  • 21.8k
2 votes
Accepted

Microdata and replacing entities for display

The Schema.org properties articleBody and description expect Text as value. If you want to follow this advice, you have to specify the properties (in itemprop) on an element that creates a string ...
unor's user avatar
  • 21.8k

Only top scored, non community-wiki answers of a minimum length are eligible