Revision as of 00:45, 17 January 2006 by B.K. DeLong (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)

Jump to: navigation, search
== More ADR examples ==

Using the ADR microformat should not just be limited to full datasets of information. In some cases, people reference regions or localities sans any additional information.

By marking these cases up, use of microformats, (particularly ADR), will skyrocket.

For instance, with the below post, I reference a city but nothing else. Because I marked up the city name with the locality property, I added the "adr" class to the block-level parent element that contains the relevant locality name.


<p class="adr">Unbelievable. Yesterday's high temperature in <span  
class="locality">Salem</span> it was 57 degrees out. </p>

Semantically-correct ADR markup would use the ABBR HTML element while using the region, country and perhaps other ADR properties.


<abbr class="region" title="California">CA</a>,
<abbr class="country" title="United States">US</abbr>

For the full country names in the title attribute of the ABBR element, use ISO 3166-1.

adr-examples was last modified: Wednesday, December 31st, 1969