Is it correct to repeat the itemprop attribute?

3

I wanted to know if repeating itemprop this way is wrong. In fact, I want to show 3 products and put their 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>

Is that correct?

    
asked by anonymous 31.08.2018 / 02:58

1 answer

0

It's not forbidden, being right will depend on the purpose you want to get by using this attribute.

As said :

  

The global itemprop attribute is used to add properties for an item. Every HTML element can have a specified itemprop attribute, and an itemprop consists of a name and value pair. 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

    
31.08.2018 / 04:51