adr-examples: Difference between revisions
Jump to navigation
Jump to search
Use of the
B.K. DeLong (talk | contribs) |
B.K. DeLong (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<h1>More ADR examples</h1> | |||
<h2>LOCALITY and other ADR fragments</h2> | |||
Using the ADR microformat should not just be limited to full datasets of information. | Using the ADR microformat should not just be limited to full datasets of information. | ||
Line 6: | Line 8: | ||
By marking these cases up, use of microformats, (particularly ADR), will skyrocket. | By marking these cases up, use of microformats, (particularly ADR), will skyrocket. | ||
For instance | For instance - with the below post, we reference a city but nothing else. | ||
Because I marked up the city name with the locality property, I added the "adr" | 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. | class to the block-level parent element that contains the relevant locality name. | ||
Example: | <h3>Example:</h3> | ||
<pre><nowiki> | <pre><nowiki> | ||
Line 17: | Line 19: | ||
</nowiki></pre> | </nowiki></pre> | ||
Semantically-correct ADR markup would use the | <h2>Use of the <code>>abbr<</code></h2> | ||
Semantically-correct ADR markup would use the <code><abbr></code> HTML element while | |||
using the region, country and perhaps other ADR properties. | using the region, country and perhaps other ADR properties. | ||
Example: | <h3>Example:</h3> | ||
<pre><nowiki> | <pre><nowiki> | ||
Line 27: | Line 31: | ||
</nowiki></pre> | </nowiki></pre> | ||
For the full country names in the title attribute of the | For the full country names in the title attribute of the <code><abbr></code> element, | ||
use [http://www.iso.org/iso/en/prods-services/iso3166ma/02iso-3166-code-lists/list-en1.html ISO 3166-1]. | use [http://www.iso.org/iso/en/prods-services/iso3166ma/02iso-3166-code-lists/list-en1.html ISO 3166-1]. |
Revision as of 01:00, 17 January 2006
More ADR examples
LOCALITY and other ADR fragments
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, we 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.
Example:
<p class="adr">Unbelievable. Yesterday's high temperature in <span class="locality">Salem</span> it was 57 degrees out. </p>
Use of the >abbr<
Semantically-correct ADR markup would use the <abbr>
HTML element while
using the region, country and perhaps other ADR properties.
Example:
<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.