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="" />
The itemprop global attribute is used to add properties to an item. Every HTML element can have an itemprop attribute specified, and an itemprop consists of a name-value pair. Each name-value pair is called a property, and a group of one or more properties forms an item.
Meta item prop is a technical term used by search engine optimisation professionals to describe the property of a website page that is used to identify the content of the page. Meta item prop is a code that you can add to your website's code to help Google better understand the content of your pages.
The global attribute itemtype specifies the URL of the vocabulary that will be used to define itemprop 's (item properties) in the data structure. itemscope is used to set the scope of where in the data structure the vocabulary set by itemtype will be active.
The content attribute of the meta element contains its values. This is used with the name attribute to specify metadata about the page.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With