[uf-new] nutrition-facts in XHTML

Toby Inkster mail at tobyinkster.co.uk
Tue Aug 4 04:30:40 PDT 2009


> <p class="hmeasure">
>   span class="type">Vitamin C</span>
>   <span class="num">15</span>
>   <span class="unit">mg</span>.
> </p>

This is indeed a good application of hmeasure. However...

>   <span class="tolerance">100%</span> of the recommended
>   <a title="Recommended Dietary Allowance" rel="glossary"
> href="http://en.wikipedia.org/wiki/Dietary_Reference_Intake">RDA</a>

That's not what tolerance is for - tolerance is more for recording the
possible error in a measurement (e.g. plus or minus 5%). This doesn't seem
to be used very much, which is why the current hmeasure draft mentions it
as an at-risk feature.

hMeasure also contains an optional "item" property much like the property
of the same name in hReview. It records what the measurement is actually
measuring. i.e. what is the thing that contains 15mg of Vitamin C.

e.g.

<p class="hmeasure">
  <span class="item">100 mL of Orange Juice</span> contains
  <span class="num">15</span> <span class="unit">mg</span> of
  <span class="type">Vitamin C</span>.
</p>

-Toby


More information about the microformats-new mailing list