Is it correct to repeat the itemprop attribute?

Asked

Viewed 67 times

3

I wish I could repeat myself itemprop this way is wrong. Actually, I want to show 3 products and put the respective itemprop of each situation:

<img class="card-img-top" src="imagem_do_produto1.jpg" alt="produto1">
<h5 class="card-title" itemprop='makesOffer'>produto1</h5>

<img class="card-img-top" src="imagem_do_produto2.jpg" alt="produto2">
<h5 class="card-title" itemprop='makesOffer'>produto2</h5>

<img class="card-img-top" src="imagem_do_produto3.jpg" alt="produto3">
<h5 class="card-title" itemprop='makesOffer'>produto3</h5>

It’s correct that way?

  • Related: https://answall.com/q/91330/8063

  • Also good: https://www.w3.org/TR/microdata/

  • https://schema.org/docs/gs.html#microdata_itemprop

1 answer

0

It is not forbidden, being correct will depend on the purpose you want to reach when using this attribute.

As stated :

The global itemprop attribute is used to add properties to an item. Every HTML element can have a specified itemprop attribute, and an itemprop consists of a pair of name and value. Each pair of name and value is called property, and a group of one or more properties forms an item.

It will depend on the itemscope

  • itemscope is Organization...

Browser other questions tagged

You are not signed in. Login or sign up in order to post.