Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Meta tags itemprop

Tags:

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="" /> 
like image 388
pessi Avatar asked Jan 09 '13 21:01

pessi


People also ask

What does Itemprop mean in HTML?

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.

What is meta Itemprop name?

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.

What is Itemtype in HTML?

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.

What is content in meta tag?

The content attribute of the meta element contains its values. This is used with the name attribute to specify metadata about the page.


1 Answers

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.

like image 97
Alohci Avatar answered Oct 05 '22 12:10

Alohci