I'm using schema.org definition to represent a product.
I have a doubt about product size: should I specify the unit of measure in the field?
Here's my code (I need a separate span for "cm" to style it differently):
Product name
Size:
60 cm
50 cm
40 cm
Is this the correct way to define the size?
解决方案
If you want to use Distance:
As the Distance type does not seem to define a suitable property to provide the actual value, and its description says that values have
[…] the form ''. E.g., '7 ft'.
I assume that the type should not be provided explicitly, e.g.:
60 cm
If the type should be provided, I guess using name is the only option:
60 cm
If you want to use QuantitativeValue:
60
cm
Instead of specifying the UN/CEFACT code for "cm" (= CMT) in a meta element (which is allowed in the body, if you use it for Microdata), you could also use the data element:
60
cm