Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
One of the simplest and most widely used microformats that embeds geolocation information into web pages is appropriately called geo. The specification is inspired by a property with the same name from vCard, which provides a means of specifying a location. There are two possible means of embedding a microformat with geo. The HTML snippet in Example 2-5 illustrates the two techniques for describing Franklin, the best small town in Tennessee.
Example 2-5. Sample geo markup
<!-- The multiple class approach -->
<span style="display: none" class="geo">
<span class="latitude">36.166</span>
<span class="longitude">-86.784</span>
</span>
<!-- When used as one class, the separator must be a semicolon -->
<span style="display: none" class="geo">36.166; -86.784</span>