Meta tags itemprop

2019-03-14 21:05发布

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条回答
Root(大扎)
2楼-- · 2019-03-14 21:46

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.

查看更多
登录 后发表回答