Use of (My) Currency Microformat

Abstract

There is a currency Microformat in proposal at the moment, and this page gives an example of how I would use it, along with some fancy formatting a la Argos (but without the tables).

Example

Now only £129.00

Code Used

  1. <p>Now only <span class="currency"><abbr class="type" title="GPB">£</abbr><span class="value">129<span>.00</span></span></span></p>
  1. .currency {
  2. color: red;
  3. font-family: arial,helvetica;
  4. font-size: 30px;
  5. font-weight: bold;
  6. }
  7. .currency abbr, .value span {
  8. vertical-align: super;
  9. font-size: 11px;
  10. font-weight: normal;
  11. }
  12. abbr {
  13. cursor: normal;
  14. border: 0;
  15. }
  16. abbr:hover {
  17. border-bottom: 1px dotted black;
  18. }

Conclusion

It works, and looks good. Now if only the others at Microformats could see that the direction they’re taking the proposal in is all wrong…

Tags