adr-examples

(Difference between revisions)

Jump to: navigation, search
m
m
Line 3: Line 3:
<h2>LOCALITY and other ADR fragments</h2>
<h2>LOCALITY and other ADR fragments</h2>
-
Using the ADR microformat should not just be limited to full datasets of information.
+
Using the <strong>adr</strong> microformat should not just be limited to full datasets of information.
In some cases, people reference regions or localities sans any additional 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.
+
By marking these cases up, use of microformats, (particularly <strong>adr</strong>), will skyrocket.
For instance - with the below post, we reference a city but nothing else.
For instance - with the below post, we reference a city but nothing else.
Line 21: Line 21:
<h2>Use of the <code>&lt;abbr&gt;</code> element</h2>
<h2>Use of the <code>&lt;abbr&gt;</code> element</h2>
-
Semantically-correct ADR markup would use the <code>&lt;abbr&gt;</code> HTML element while
+
Semantically-correct <strong>adr</strong> markup would use the <code>&lt;abbr&gt;</code> HTML element while
-
using the region, country and perhaps other ADR properties.
+
using the region, country and perhaps other <strong>adr</strong> properties.
<h3>Example:</h3>
<h3>Example:</h3>

Revision as of 01:05, 17 January 2006

Contents

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> element

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.

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

Views