Opentopia Directory Encyclopedia Tools

Microformats

Encyclopedia : M : MI : MIC : Microformats


Microformats are markup that allow expression of semantics in an HTML (or XHTML) web page. Programs can extract meaning from a standard web page that is marked up with microformats.

Existing XHTML (and HTML) standards allow for semantics to be embedded and encoded within them. This is done using specific HTML attributes:

Adding microformats to a standard HTML web page allows machines to process HTML text and to possibly load data into remote databases. This would allow programs such as web crawlers to find items such as contact information, events, and reviews on web pages.

Loosely coupled semantics

One of the advantages of semantic HTML and microformats (as opposed to XML-based semantics) is that semantic information can be loosely coupled. For example, consider the hCard contact information microformat:


<span class="vcard">
<span class="fn">Joe Blow</span>
<span class="org">The Example Company</span>
<span class="tel">604-555-1234</span>
<a class="url" href="http://example.com/">http://example.com/</a>
</span>

If one wanted to make this more aesthetically pleasing, say for an HTML e-mail signature, one could equally encode this as follows (while still retaining all the same semantics):


<pre class="vcard">
__________________
|
|  <span class="fn">Joe Blow</span>
|  <span class="tel">604-555-1234</span>
|______________________________________________
<span class="org">The Example Company</span>     <a class="url" href="http://example.com">http://example.com/</a>
</pre>

Which would get rendered as:


__________________
|
|  Joe Blow
|  604-555-1234
|______________________________________________
The Example Company     http://example.com/

Specific Microformats

Several microformats have been developed to enable semantic markup of particular types of information.

See also

External links

 


From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.

Search Titles
0123456789
ABCDEFGHIJ
KLMNOPQRST
UVWXYZ?

E-mail this article to:

Personal Message: