[uf-discuss] Currency microformat

Arve Bersvendsen arveb at opera.com
Tue Jul 18 02:31:04 PDT 2006

On Tue, 18 Jul 2006 11:12:11 +0200, Ben Ward <lists at ben-ward.co.uk> wrote:

> On 18 Jul 2006, at 07:24, Ben Buchanan wrote:
>> The classic problem example would be a page stating a price of "$50".
>> Is that Australian dollars? US dollars? Monopoly money? :)
> This is certainly a worthy cause, but to play devil's advocate for a  
> moment, could pure HTML be sufficient?
> <html lang="en-gb">
> <p>My new T-Shirts cost £30, but it cost my friend in Canada <span  
> lang="en-ca">$34</span></p>
> </html>

Language does not indicate currency, and any such use would be abuse.  I  
may write something like:

   <p lang="nb">Den kanadiske prisen på t-skjorten var 34 $</p>
   (The Canadian price of the t-shirt was $34)

I am still very much writing in Norwegian (Bokmål), using a Norwegian  
convention of postfixing the currency symbol instead of prefixing it, but  
I am refering to the Canadian Dollar. I would probably suggest marking  
this up using classnames:

   <p lang="nb">Den kanadiske prisen på t-skjorten var <span  
class="currency CAD">34 $</span>.</p>

You could of course also complicate this further by using inline elements  
to separate value from symbol.
Arve Bersvendsen, Opera Software ASA, http://www.opera.com/

More information about the microformats-discuss mailing list