Where to put schema.org tags in HTML page?

主宰稳场 提交于 2019-12-13 04:39:54

问题


Where should I put schema.org tags? I have 3 options:

  1. at detail page of article
  2. at category page where are articles of category
  3. at search page

Should I put schema.org tags on all these pages or?


回答1:


You can use Schema.org on all pages.

Various consumers might find it useful. Why should they have to visit a specific page to see your Schema.org markup for content they already see?

Just make sure that you don’t create several items for the same thing on the same page, unless you denote them as being about the same thing (e.g., with Microdata’s itemid or by using the same subject URI in RDFa).

You could use mainEntity/mainEntityOfPage to denote which item the page is primarily about.



来源:https://stackoverflow.com/questions/23432263/where-to-put-schema-org-tags-in-html-page

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!