Concentrating on the credit portion, this bit of POSH code can be enhanced with even greater meaning by overlaying a microformat. For instance, one way to assign classes and pieces of information to the credit information might be:
<div id=”hcard-Robert-M-Cherny” class=”vcard”>
<h3>About the author:</h3>
<h4><a class=”url fn n” href=”http://navigationarts.com”>
<span class=”given-name”>Rob</span>
<span class=”family-name”>Cherny</span></a><br>
<span class=”title”>Lead Developer</span></h4>
<p>
<span class=”org”>NavigationArts, LLC</span><br>
<span class=”adr”>
<span class=”street-address”>
7901 Jones Branch Road</span><br>
<span class=”locality”>McLean</span>,
<span class=”region”>VA</span>,
<span class=”postal-code”>22102</span>
<span class=”country-name”>
United States of America</span><br>
<span class=”tel”>703.584.8920</span>
</span>
</p>
</div>
This example adopts the hCard microformat defined at microformats.org. The classes defined for vcard, given-name, additional-name, family-name, org, adr, and so forth identify key pieces of information. While on the markup-heavy side, it does, in a very granular way, specify the meaning of each element, which is of potentially great use.
In XML, tags give meaning to each field of information. With microformats, valid class and other attribute information can be added to the POSH code to enable understanding of the granular pieces of information.
