Google's John Mueller on The place to insert structured knowledge JSON-LD

Within the newest version of the #AskGoogleWebmasters video sequence, Google's John Mueller solutions a typical query about structured JSON-LD knowledge.

Right here is the query that has been submitted:

"Is it attainable to insert structured JSON knowledge on the backside of the pinnacle of the? This appears to work properly for a lot of web sites. "

In response, Mueller solutions "sure". JSON-LD structured knowledge can completely be inserted into the header or the physique of the web page. Simply as the one who requested the query assumed, it should work in each instances.

JSON-LD can be inserted into pages utilizing JavaScript, if it fits your pages higher.

What’s the distinction between JSON-LD and different varieties of structured knowledge?

Earlier than answering the query, Mueller briefly defined every kind of structured knowledge and the way it was completely different.

Along with JSON-LD, there are two different varieties of structured knowledge. Listed here are the variations between every of them.

  • JSON-LD: A JavaScript notation embedded in a script tag within the header or physique of the web page.
  • microdata: An open group HTML specification used to nest structured knowledge in HTML content material.
  • RDFAAn HTML5 extension that helps hyperlink knowledge by extra attributes added to current HTML tags on the web page.

Though all a lot of these structured knowledge can be utilized, Mueller mentioned that Google prefers to make use of JSON-LD.

Extra sources