[uf-discuss] Visible data and key+value pairs
Kevin Marks
kmarks at technorati.com
Thu Oct 26 12:36:08 PDT 2006
I had a discussion about this in Shelley Powers' blog comments a while
back:
http://just.shelleypowers.com/technology/ajax-myth-busting/#comment638
what I said then was:
What is data and what is metadata depends on the content and the
context.
If you have a series of key/value pairs where both the keys and values
make sense in text to humans (say, a credits list for a film) <dl> is
fine - this is part of the XOXO spec.
If you have a case where the values are human readable, but the keys
are for machines, use the "class on container" technique - see hCard
for examples of this.
If you have a case where neither key or value makes sense to the
humans, only the script, use JSON (ie express them in <script>)
That leaves the case where the keys make sense and the values don't -
the <abbr> design pattern could work there.
More information about the microformats-discuss
mailing list