元标记itemprop [英] Meta tags itemprop

查看:392
本文介绍了元标记itemprop的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将提取的结构化数据包含在我的网页中。

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="" />


推荐答案

离开两者他们 Microdata Spec 说:


如果meta元素具有itemprop属性,则必须省略name,http-equiv和
charset属性,并且content属性必须为
present。

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.

因此合并它们无效。

这篇关于元标记itemprop的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆