implement: Difference between revisions

From Microformats Wiki
Jump to navigation Jump to search
(grammar; hCard for orgs as well as people; add hAtom)
Line 1: Line 1:
=So you wanna implement microformats?=
=So you want to implement microformats?=


Microformats are designed to be similar to current markup styles. This means that it is quite possible that you won't have to do much work to produce microformats on your site.
Microformats are designed to be similar to current markup styles. This means that it is quite possible that you won't have to do much work to produce microformats on your site.


For example...
For example:


* Do you publish events information on your site? Then mark those events up with [[hcalendar|hCalendar]].  
* Do you publish events information on your site? Then mark those events up with [[hcalendar|hCalendar]].  
* Do you have people and their contact information? Then mark those up with [[hcard|hCard]].  
* Do you have people, or organisation,s and their contact information? Then mark those up with [[hcard|hCard]].  
* Do you have an explicit copyright license on your content? Then markup the link to your license with [[rellicense|relLicense]].  
* Do you have an explicit copyright license on your content? Then markup the link to your license with [[rellicense|relLicense]].  
* Do you have social networking data? Then mark that up with [http://gmpg.org/xfn XFN]. Are you using tagging? Then use [[reltag|relTag]] or [[xfolk|xFolk]].  
* Do you have social networking data? Then mark that up with [http://gmpg.org/xfn XFN]. Are you using tagging? Then use [[reltag|relTag]] or [[xfolk|xFolk]].  
* Are you publishing lists? Then use [[xoxo|XOXO]].  
* Are you publishing lists? Then use [[xoxo|XOXO]].  
* Do you publish reviews? Then use [[hreview|hReview]].
* Do you publish reviews? Then use [[hreview|hReview]].
* Do you publish feeds? Then use [[hatom|hAtom]].


You see many common kinds of content can be marked up in microformats and chances are you already have some of them on your site. Start with the obvious ones.
You see many common kinds of content can be marked up in microformats and chances are you already have some of them on your site. Start with the obvious ones.


And here's a few more tips:
Here are a few more tips:


* Try to produce clean, semantic xhtml. Often this will get you very close to microformats on its own.
* Try to produce clean, semantic (X)HTML. Often this will get you very close to microformats on its own.
* Read some background material:
* Read some background material:
** http://microformats.org/wiki/SemanticXHTMLDesignPrinciples
** http://microformats.org/wiki/SemanticXHTMLDesignPrinciples

Revision as of 20:11, 9 March 2007

So you want to implement microformats?

Microformats are designed to be similar to current markup styles. This means that it is quite possible that you won't have to do much work to produce microformats on your site.

For example:

  • Do you publish events information on your site? Then mark those events up with hCalendar.
  • Do you have people, or organisation,s and their contact information? Then mark those up with hCard.
  • Do you have an explicit copyright license on your content? Then markup the link to your license with relLicense.
  • Do you have social networking data? Then mark that up with XFN. Are you using tagging? Then use relTag or xFolk.
  • Are you publishing lists? Then use XOXO.
  • Do you publish reviews? Then use hReview.
  • Do you publish feeds? Then use hAtom.

You see many common kinds of content can be marked up in microformats and chances are you already have some of them on your site. Start with the obvious ones.

Here are a few more tips: