hcard-implied: Difference between revisions
AndyMabbett (talk | contribs) (make status (i.e.. this is a proposal) clear) |
mNo edit summary |
||
Line 27: | Line 27: | ||
</nowiki></pre> | </nowiki></pre> | ||
Which amounts to an almost 500% increase in code. For two words and a <abbr>URL</abbr>. | Which amounts to an almost 500% increase in code. For two words and a <abbr>URL</abbr>. ('''Note: this reasoning has the classic strawman argument [[logical flaw]], where an example is deliberately excessively artificially constructed in order to support a point. Please see [[hcard-examples]] for how to minimally create an hCard from a linked person's name. [[User:Tantek|Tantek]] 11:47, 4 Jan 2008 (PST)) | ||
* For more examples, see [[hcard-implied-examples]] | * For more examples, see [[hcard-implied-examples]] | ||
* For ideas refer to [[hcard-implied-brainstorming]] | * For ideas refer to [[hcard-implied-brainstorming]] |
Revision as of 19:47, 4 January 2008
Implied hCard
It is proposed to extend the hCard specification to include Implied hCards, in order to attempt to streamline creation and markup for simple hCards by assuming information from common design patterns.
Authors
Why?
As microformats grow and emerge, the barrier to entry for writing them increases. Already, compound microformats such as hAtom, hResume and hReview are comprised of data from hCard, hCal, and rel-tag, and writing to the former requires knowledge of the latter even if the constructs used are quite simple. In addition, adding microformats to a Web page often requires adding a significant amount of tags to code, which often have to be added (time-consumingly) by hand. For example:
<a href="http://www.example.com/">John Doe</a>
quickly becomes:
<span class="vcard"> <a class="url fn n" href="http://www.example.com/"> <span class="given-name">John</span> <span class="family-name"> <span class="sort-string">D</span>oe </span> </a> </span>
Which amounts to an almost 500% increase in code. For two words and a URL. (Note: this reasoning has the classic strawman argument logical flaw, where an example is deliberately excessively artificially constructed in order to support a point. Please see hcard-examples for how to minimally create an hCard from a linked person's name. Tantek 11:47, 4 Jan 2008 (PST))
- For more examples, see hcard-implied-examples
- For ideas refer to hcard-implied-brainstorming