Schema.org: Use Microdata, RDFa or JSON-LD?

后端 未结 1 368
渐次进展
渐次进展 2020-12-19 17:35

Are there any advantages/disadvantages in using a specific format for http://www.schema.org/Product? Something like \"Searchengines understand Microdata better than JSON-LD\

相关标签:
1条回答
  • 2020-12-19 18:27

    There is no general answer, it depends on the consumer of the data.

    A specific consumer supports a specific set of syntaxes, and might or might not recommend a subset of these supported syntaxes.

    Because search engines usually try to make sure not to get lead astray (e.g., a page about X claims via its Schema.org use to be about Y), it seems natural that they would prefer a syntax that couples the Schema.org metadata to the visible content of the page (in HTML5, this would be Microdata or RDFa); for the same reasons why many meta tags are dead for SEO.

    However, this is not necessarily always the case. Google, for example, recommends the use of JSON-LD for a few of their features (bold emphasis mine):

    • Promote Critic Reviews:

      Though we strongly recommend using JSON-LD, Google can also read schema.org fields embedded in a web page with the microdata or RDFa standards.

    • Sitelinks Search Box:

      We recommend JSON-LD. Alternatively, you can use microdata.

    0 讨论(0)
提交回复
热议问题