Ziff-Davis Enterprise 
DevSource: Microsoft Developer Resource
Add OnsArchitectureLanguagesTechniquesUsing VSForums
 
Home arrow Techniques arrow Page 2 - A Developer's Introduction to Microformats
A Developer's Introduction to Microformats
By Phil Haack

Rate This Article:
Add This Article To:
A Developer's Introduction to Microformats - ' Defining Terms '
( Page 2 of 4 )

When Bill Gates recently said at the MIX Conference, "We need microformats," he indicated that microformats are here to stay. Microformats are expected to have increased significance on the web. But what exactly are microformats?

Microformats are a set of open data formats used to mark up XHTML content to provide a bit of semantic meaning. Proponents often categorize Microformats as part of the “lowercase” semantic web, to distinguish it from the lofty (and by some accounts unnattainable) goal of the “Semantic Web.”

ADVERTISEMENT

An example may help make this topic more concrete.

The following is an example of XHTML code someone might use to link to my blog.

<a href="http://blog.example.com/" title="some generic blog" rel="friend met">A Friend</a>

Notice the bolded section, rel="friend met". This attribute value indicates that the anchor tag refers to someone who is both a friend of the author and someone whom the author has met.

To refer to oneself, simply specify a value of “me”:

<a href="http://haacked.com/" title="The author’s blog" rel="me">The Author</a>

Attaching relationship info within an anchor tag is an example of the XFN Microformat.

Notice the simplicity of this format. By simply adding a rel attribute to your HTML markup, you are already in the business of adding microformats to your code. This format is based on a pre-existing format called the XHTML Friends Network.



 
 
>>> More Techniques Articles          >>> More By Phil Haack
 



DevSource video
Devsource Video Series
Manipulating Society through Technology
Jeremy Bailenson, Director of the Virtual Human Interaction Lab at Stanford University, talks about virtual reality, avatars, Moore's law, how real world behaviors influence online reality, and societal manipulation through technology!
>> Play video
>> Read article
>> See all videos
DevLife Blog
Julia looks at the changes to ADO.NET!
MSDev Blog
Is the latest Delphi product, RAD Studio 2007, really necessary?
Make it Work
.NET makes runtime type checking a breeze. See what Peter has to say about it in this week's tips!
News
Microsoft Counts on App Support for Vista
Microsoft has taken pains to demonstrate that Windows Vista will have ample application support.
DevSource RSS FEEDS
XML Want an easy way to keep up with breaking tech news? And the Get DevSource headlines delivered to your desktop with RSS.