Insert currency currency cards (schema.org) into html table

I have the following code:

<tr><th>Availability:</th>
  <td><link itemprop="availability" href="http://schema.org/InStock"/>available</td></tr>
<tr><th>Price:</th>
  <td itemprop="price">$137</td></tr>
<meta itemprop="priceCurrency" content="USD" />
</tbody>

Unfortunately, he does not confirm:   Start tag meta seen in table.

How can I insert price currency and validation?

+4
source share
5 answers

You can put the element metain tdand transfer the property priceto span(otherwise the price value will contain the string "USD").

<tr>
  <th>Price:</th>
  <td>
    <span itemprop="price">137</span>
    <meta itemprop="priceCurrency" content="USD" />
  </td>
</tr>
+4
source

A small suggestion to answer @unor. The property "price" should not contain any signs except numbers.

priceCurrency ( ISO 4217, "USD" ), , , "$".

ref: http://schema.org/price

,

<span itemprop="price">$137</span>

<span itemprop="price">137</span>
+3

Correct answer. Another possible way:

<tr>
  <th>Price:</th>
    <td>
      <span itemprop="price">$137</span> 
        (<abbr title="United States Dollars" itemprop="priceCurrency">USD</abbr>)
    </td>
</tr>

Due to the fact that "USD" will be visible to the website visitor, you will eliminate any possible confusion for your visitor regarding the currency that "$" refers to (US dollars, Canadian dollars, Australian dollars, etc.).

+1
source

<div itemscope itemtype="http://schema.org/Product">
  <meta itemprop="name" content="product name" />
  <meta itemprop="gtin14" content="00886227537143" />
  <div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
    <meta itemprop="price" content="55.00" />
    <meta itemprop="priceCurrency" content="USD" />
    <meta itemprop="availability" content="http://schema.org/InStock" />
    <meta itemprop="itemCondition" content="http://schema.org/NewCondition" />
  </div>
</div>
Run codeHide result
0
source

It is important to include schema.org/offer:

<tr itemprop="offers" itemscope itemtype="http://schema.org/Offer">
  <th>Price:</th>   
  <td><span>$</span><span itemprop="price">137</span>
    <meta itemprop="priceCurrency" content="USD" />   
  </td> 
</tr>
0
source

Source: https://habr.com/ru/post/1533212/


All Articles