Using schema.org branchOf with itemref

About itemref: it has to be specified on elements with itemscope it is used to reference other properties (= itemprop in Microdata) So this means for you: move itemref to the Hotel move itemprop=”branchOf” to the Organization Minimal example: <div itemprop=”branchOf” itemscope itemtype=”http://schema.org/Organization” id=”schema-organization”> <h1 itemprop=”name”>The Hotel Chain</h1> </div> <div itemscope itemtype=”http://schema.org/Hotel” itemref=”schema-organization”> <h2 itemprop=”name”>Hotel … Read more

Does Schema.org markup work if markup is dynamically built with JavaScript?

Google’s documentation only mentions that they can consume dynamically added structured data if the syntax JSON-LD is used: Also, Google can read JSON-LD data even when it is dynamically injected into the page’s contents, such as by Javascript code or embedded “widgets”. This does not necessarily mean that they can’t read it in case of … Read more

Microdata vs RDFa

Differences between Microdata and RDFa While there are many (technical, smaller) differences, here’s a selection of those I consider important (used my answer on Webmasters as a base). Specifications As W3C’s HTML WG found no volunteer to edit the Microdata specification, it is now merely a W3C Group Note (see history), which means that there … Read more

How to add an image to an event with Microdata meta tag?

Instead of using the meta element, you must use the link element (because the value is a URI): <link itemprop=”image” href=”https://stackoverflow.com/questions/24638451/image.jpg” /> This is required by HTML5 (bold emphasis mine): The meta element represents various kinds of metadata that cannot be expressed using the […] link […] elements. And it’s also explicitly required by Microdata.