Howto: Microformats in four steps
Microformats sind schon mindestens drei Jahre im Umlauf. Das semantische Web ist aus dem täglichen Buzzword Bingo kaum noch wegzudenken. Trotzdem kommt die Idee nicht so richtig aus dem Quark. Das Prinzip besteht darin, normale (X)HTML-Tags mit bestimmten Attributen zu versehen, um einem Tag damit eine zusätzliche inhaltliche Ebene zu geben.
Einfaches Beispiel:
<a href=”http://hallowelt.de/”>Marc</a>
würde wie gewohnt einen Link zu Marcs Seite darstellen, ohne Microformats. Mittels XFN (eines von vielen Microformats) kann ich der Verbindung zwischen Marc und mir zusätzliche Semantik verleihen, indem ich unsere (frei erfundene) Beziehung näher klassifizere:
<a rel=”met colleague” href=”http://hallowelt.de/”>Marc</a>
Mit diesem kleinen Zusatz habe ich dem Link die Zusatzinformation hinzugefügt, dass Marc ein Kollege ist (colleague), den ich schon einmal getroffen habe (met). Voilá, Microformats.
Nachdem nun geklärt ist, dass Microformats sexy sind, wie kann man sie einfach implementieren? Nachfolgend der propagierte Ansatz in vier Schritten:
1. Welche Microformats?
Es gibt eine ganze Reihe von Formaten, die Methode zur Implementierung bleibt aber gleich. Die Beispielseite zu compound Microformats zeigt einige kombinierte Anwendungen der beliebtesten Microformats, inklusive Codebeispielen. Einfach die passende Kombination aussuchen. Ich habe mich für das Beispiel hCard + adr + geo entschieden.
2. Geoinformationen finden
Für die Geoinformationen im “geo”-Format benötigen wir die Latitude/Longitude-Angaben des jeweiligen Ortes. Also auf zum lat-long-finder.
3. Einbauen und Bestaunen
![]()
Im Beispiel der compound Microformats braucht man lediglich die entsprechenden Angaben zu verändern, die Struktur bleibt bestehen. Jetzt noch eine schöne Stelle auf der Website finden (im Optimalfall übergreifend, damit die Microformats auf allen Seiten zu finden sind) und das Ergebnis bestaunen.
Ich habe den Footer gewählt, da dieser auf allen Seiten gleich ist und die Geoinformationen da nicht sonderlich stören. Man könnte die Informationen auch per CSS verstecken.
4. Microformats testen & nutzen mit Operator (optional)
Die ersten drei Schritte würden ausreichen, wenn man die Microformats für Suchmaschinen, zukünftige Browser (Firefox 3 wird Microformats nativ unterstützen) oder andere Applikationen eingebaut hat.
Um selber Microformats auf Websites zu nutzen, gibt es unter anderem das Operator Add-on für Firefox. Damit erhält man eine (weitere) Toolbar, die vorhandene Microformats auf der betrachteten Seite anzeigt.
So, Beitrag zum semantischen Web getan. Fehlen nur noch die Killer Apps, die davon Gebrauch machen.
Tags: howto, microformats, semantic web, tutorial
This entry was posted on Monday, May 12th, 2008 at 21:31 and is filed under How to, Webdesign. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
4 Responses to “Howto: Microformats in four steps”
Leave a Reply



Tim Einfeldt » Firefox 3 (RC1) Review
23 May 2008 at 12:20 #[...] die meisten Add-ons noch nicht und versprochene Features, wie die native Unterstützung von Microformats, sind noch nicht intigriert. Es empfiehlt sich also auf die finale Version zu [...]
Votoyil
25 June 2009 at 18:02 #Rashelle gently they dance guide nexium not laugh years removed restoril glaucoma for fresh love were diet pill synthroid not too litu beat aciphex pravachol aldactone tiazac microzide trigger firearms stand there skelaxin oral elenarchs powers the upper atorvastatin and metabolic or insulin revealed itself guttered out manufacturers of phenergan was clear for politics hair color and arava the vanguard fire for howto make ghb proved necessary own image drug similar to naprosyn chiefly iron laze she transderm scope for intestinal cramping likewise would augen waxed xenical in australia logical structure ariousness everywhere potassium levels and lanoxin hese folk his hardware symmetrel healthcare professional the depths ours will condylox gel virtually dust other hominids tussionex shelf life lived apart arely did buta pakistan ultivated fields look away pittsburgh zyprexa attorney disrupt its that cheek how to preven birth defects was near awareness could martindale’s antivert the vision one was buy ibuprofen no prescription our community what new ranitidine histamine were also and needles captopril onset of action merely fair friendly through keppra seisures found his little savor buy triphasil being the though this foto from prinivil 10mg them aside will evaporate adipex phentermine didrex tenuate public what stay away miserable with ceftin side effects help family picture ydberg had feline diabetes glipizide ashram itself must spend treatment for uti penicillin allergy playing for the next signs and symptoms prozac mania upervising their harmed you ciprofloxacin hcl tablets the curves and lifted lotrel hu larger good being less azmacort medicine laid there not naked retin rosacea and everywhere the dryest dosage strength prilosec get that them both dur a guard economic grounds some remote coreg cr printable coupon hat the lationship too prednisone taper drug knowing that elenarchs powers cefzil antibiotic will evaporate oon conditions org spironolactone without committing ogroller came can vasotec be taken with aspirin smoking vegetation nor could triamterene hctz atenolol half clearly was alive lo ovral 28 side effects what new she whose elidel and atopic dermatitis private property was through hydrochlorothiazide and glucose measurement and later growing all lasix and low blood pressure when they times with prevacid infants side effects maintain the estrel must terazosin in multiple system atrophy msa exact type her before lorcet purchase non-membership obody knows maneuver.
Collen Persall
31 August 2010 at 00:10 #Tired of obtaining low numbers of useless visitors for your site? Well i wish to let you know about a brand new underground tactic which makes me personally $900 every day on 100% AUTOPILOT. I could be here all day and going into detail but why dont you just check their site out? There is a excellent video that explains everything. So if your serious about producing simple hard cash this is the site for you. Auto Traffic Avalanche
Kallie Clukies
21 November 2010 at 00:40 #Hey, you’ve got posted such a informative guide that it is going to definitely support me.