我正在尝试在我的网页中包含提取的结构化数据。
我把这个包括在内作为描述:
<meta itemprop="description" content="my description" />
但是我意识到页面上已经有一个正常的元描述:
<meta name="description" content="my description" />
是可以保留它们还是真的有必要将它们合并在一起,例如:
<meta itemprop="description" name="description" content="" />
最佳答案
你应该离开他们两个。 Microdata Spec说:
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.
所以合并它们是无效的。
关于html - 元标签 itemprop,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14246710/