Meta tags itemprop

与世无争的帅哥 提交于 2019-12-03 10:58:26

问题


I am trying to include extracted structured data in my webpages.

I included this for description:

<meta itemprop="description" content="my description" />

However I realised that there is already a normal meta description on the page:

<meta name="description" content="my description" />

Is it ok to leave both of them or it is really necessary to merge them together maybe like:

<meta itemprop="description" name="description" content="" />

回答1:


You should leave both of them. The Microdata Spec says:

If a meta element has an itemprop attribute, the name, http-equiv, and charset attributes must be omitted, and the content attribute must be present.

so it would be invalid to merge them.



来源:https://stackoverflow.com/questions/14246710/meta-tags-itemprop

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