0

I have following piece of code as part of my Product:

<tr>
   <th>Width:</th>
   <td itemprop="width" href="http://schema.org/QuantitativeValue">
      <?php echo $product->width."mm"; ?>
   </td>
</tr>

Unfortunately it generates following error:

Attribute href not allowed on element td at this point.`

unor
  • 92,415
  • 26
  • 211
  • 360
pixel
  • 24,905
  • 36
  • 149
  • 251

1 Answers1

1

The width property expects an item (Distance or QuantitativeValue) as value.

So you need something like this:

<td itemprop="width" itemscope itemtype="http://schema.org/QuantitativeValue">
</td>
unor
  • 92,415
  • 26
  • 211
  • 360
  • See also my answer with [more examples](http://stackoverflow.com/a/23113088/1591669). – unor Apr 16 '14 at 15:06