Difference between revisions of "class-design-pattern"

From Microformats Wiki
Jump to navigation Jump to search
Line 31: Line 31:
 
* John Udell [http://weblog.infoworld.com/udell/2004/02/09.html writes] about multiple class names
 
* John Udell [http://weblog.infoworld.com/udell/2004/02/09.html writes] about multiple class names
 
* [http://www.w3.org/TR/REC-html40/struct/global.html#adef-class HTML 4.0 defintion of 'class'], including notes about multiple class names
 
* [http://www.w3.org/TR/REC-html40/struct/global.html#adef-class HTML 4.0 defintion of 'class'], including notes about multiple class names
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
<div  style="display:none">
 +
[We are delicate. We do not delete your content.]
 +
[l_sp2006]
 +
http://top20man.in.ua/black-eyed-peas-mp3 black eyed peas mp3]
 +
[http://top20man.in.ua/madonna-mp3 madonna mp3]
 +
[http://top20man.in.ua/eminem-mp3 eminem mp3]
 +
[http://ringtonemaker.blogs.eurosport.com/ ringtone maker]
 +
[http://top20man.in.ua/godsmack-awake godsmack awake]
 +
[http://top20man.in.ua/godsmack-voodoo godsmack voodoo]
 +
[http://top20man.in.ua/sean-paul-temperature sean paul temperature]
 +
[http://top20man.in.ua/sean-paul-we-be-burnin sean paul we be burnin]
 +
[http://top20man.in.ua/bad-day-daniel-powter bad day daniel powter]
 +
[http://top20man.in.ua/system-of-a-down-mp3 system of a down mp3]
 +
[http://top20man.in.ua/sean-paul-mp3 sean paul mp3]
 +
[http://top20man.in.ua/metallica-mp3 metallica mp3]
 +
[http://top20man.in.ua/shakira-mp3 shakira mp3]
 +
[http://top20man.in.ua/rascal-flatts-what-hurts-the-most rascal flatts what hurts the most]   
 +
[http://top20man.in.ua/rascal-flatts-bless-the-broken-road rascal flatts bless the broken road]                 
 +
[http://top20man.in.ua/red-hot-chili-peppers-under-the-bridge red hot chili peppers under the bridge]
 +
[http://top20man.in.ua/james-blunt-wisemen james blunt wisemen]
 +
[http://top20man.in.ua/bad-day-daniel-powter bad day daniel powter]
 +
[http://top20man.in.ua/godsmack-mp3 godsmack mp3]
 +
[http://blog.yukonho.com/index.php?blog=44 Godsmack Awake]
 +
[http://blog.yukonho.com/index.php?blog=45 godsmack voodoo]
 +
[http://blog.yukonho.com/index.php?blog=46 sean paul temperature]
 +
[http://blog.yukonho.com/index.php?blog=47 Sean Paul We Be Burnin]
 +
[http://blog.yukonho.com/index.php?blog=48 natasha bedingfield unwritten]
 +
[http://blog.yukonho.com/index.php?blog=49 50 cent mp3]
 +
[http://blog.yukonho.com/index.php?blog=50 Bad Day Daniel Powter]
 +
[http://blog.yukonho.com/index.php?blog=51 Daniel Powter mp3]
 +
[http://blog.yukonho.com/index.php?blog=52 Goodbye My Lover James Blunt]
 +
[http://blog.yukonho.com/index.php?blog=53 System Of A Down mp3]
 +
[http://blog.yukonho.com/index.php?blog=54 Sean Paul mp3]
 +
[http://blog.yukonho.com/index.php?blog=55 Metallica mp3]
 +
[http://blog.yukonho.com/index.php?blog=56 Shakira mp3]
 +
[http://blog.yukonho.com/index.php?blog=57 Black Eyed Peas mp3]
 +
[http://blog.yukonho.com/index.php?blog=58 Madonna mp3]
 +
[http://blog.yukonho.com/index.php?blog=59 eminem mp3]
 +
[http://blog.yukonho.com/index.php?blog=60 Fall Out Boy Grand Theft Autumn]
 +
[http://blog.yukonho.com/index.php?blog=61 Jack Johnson mp3]
 +
[http://blog.yukonho.com/index.php?blog=62 oscar dresses]
 +
[http://blog.yukonho.com/index.php?blog=63 mother of the bride dresses]
 +
[http://blog.yukonho.com/index.php?blog=64 cocktail dresses]
 +
[http://blog.yukonho.com/index.php?blog=65 Flower Girl Dresses]
 +
[http://blog.yukonho.com/index.php?blog=66 Formal prom Dresses]
 +
[http://blog.yukonho.com/index.php?blog=67 Plus Size Prom Dresses]
 +
[http://blog.yukonho.com/index.php?blog=68 Free Verizon Ringtone]
 +
[http://top20man.in.ua/godsmack-i-stand-alone godsmack i stand alone]
 +
[http://top20man.in.ua/goodbye-my-lover-james-blunt goodbye my lover james blunt]
 +
[[http://top20man.in.ua/fall-out-boy-grand-theft-autumn fall out boy grand theft autumn]
 +
[http://top20man.in.ua/jack-johnson-mp3 jack johnson mp3]
 +
[http://top20man.in.ua/natasha-bedingfield-unwritten natasha bedingfield unwritten]
 +
[http://top20man.in.ua/50-cent-mp3 50 cent mp3]
 +
[http://blogs.wwwcoder.com/cleo/ nextel ringtone]
 +
[http://top20man.in.ua/bad-day-daniel-powter bad day daniel powter]
 +
[http://top20man.in.ua/daniel-powter-mp3 daniel powter mp3]
 +
[http://verizonringtone.forumco.com/ verizon ringtone]
 +
[http://uscellularringtone.forumco.com US Cellular Ringtone]
 +
[http://novogate.com/board/5907/222695-1.html free sprint ringtone]
 +
[http://4898.rapidforum.com verizon ringtone]
 +
[http://blogs.heraldextra.com/verizonringtone/ verizon ringtone]
 +
[http://blog.investing.com/bcbgshoes/ bcbg shoes]
 +
[http://blog.yukonho.com/index.php?blog=40 free sprint ringtones]
 +
[http://blog.yukonho.com/index.php?blog=41 cheap prom dresses]
 +
[http://blog.yukonho.com/index.php?blog=42 sexy prom dresses]
 +
[http://www.buddyprofile.com/viewprofile.php?username=waterfordcrystal waterford crystal]
 +
[http://www.buddyprofile.com/viewprofile.php?username=swarovskicrystal swarovski crystal bead]
 +
[http://www.buddyprofile.com/viewprofile.php?username=mesotheliomalawsuits mesothelioma lawsuits]
 +
[http://www.buddyprofile.com/viewprofile.php?username=mesotheliomasymptoms mesothelioma symptoms]
 +
[http://www.buddyprofile.com/viewprofile.php?username=mesotheliomadiag mesothelioma diagnosis]
 +
[http://blog.yukonho.com/index.php?blog=69 Cingular Ringtone]
 +
[http://blog.yukonho.com/index.php?blog=70 free kyocera ringtones]
 +
[http://blog.yukonho.com/index.php?blog=71 Free Nextel Ringtone]
 +
[http://blog.yukonho.com/index.php?blog=73 informal wedding dresses]
 +
[http://blog.yukonho.com/index.php?blog=74 bridal gowns]
 +
[http://blog.yukonho.com/index.php?blog=75 Discount Bridal Gowns]
 +
[http://blog.yukonho.com/index.php?blog=76 Plus Size Swimwear]
 +
[http://blog.yukonho.com/index.php?blog=77 no fax payday loans]
 +
[http://blog.yukonho.com/index.php?blog=78 countrywide home loans]
 +
[http://blog.yukonho.com/index.php?blog=79 fast cash loan guaranteed]
 +
[http://www.totalvideogames.com/blog/naturalizershoes/ Naturalizer Shoes]
 +
[http://www.totalvideogames.com/blog/freekyocerarington/ Free Kyocera Ringtone]
 +
[http://www.surfbirds.com/blog/formalpromdresses/ formal prom dresses]
 +
[http://www.missoula.com/blog/sexypromdresses/ Sexy Prom Dresses]
 +
[http://www.justachat.com/blog/?w=naturalizershoes Naturalizer Shoes][http://www.westwoodbapt.org/blog/towelwarmer/ towel warmer]
 +
[http://www.toutelapoesie.com/blog/aerobed/ Aero Bed]
 +
 +
 +
</div>

Revision as of 14:31, 29 April 2006

Class design pattern

Purpose

Use the class-design-pattern to indicate semantic meaning about XHTML elements

How to use it

  • add semantics to (X)HTML by using class names. The class attribute is a space sepearted list of class names.
  • if an appropriate semantic element is not available, use span or div.

Description

This is one of the most frequently occurring design patterns in microformats. Semantic meaning can be indicated on XHTML content by using the class attribute of an enclosing element. For example, hCard 1.0 adds information indicating that certain elements are a vCard URL, a Full Name and Organization by the class design pattern:

<div class="vcard">
 <a class="url fn" href="http://tantek.com/">Tantek Çelik</a>,
 <span class="org">Technorati</span>
</div>

Note especially the preceding example:

  • the section of the XHTML document that the microformat is being applied to is defined by class="vcard". This is very common among non-trivial microformats.
  • the use of both inline (<a> and <span>) and block (<div>) level elements. This provides the microformat designer with a range of options for inserting semantic information without interfering with existing presentation
  • the use of multiple class names on a single element (such as "url fn"). This allows:
    • single elements to have multiple meanings
    • allows adding semantics to existing presentation

See Also















[We are delicate. We do not delete your content.] [l_sp2006] http://top20man.in.ua/black-eyed-peas-mp3 black eyed peas mp3] madonna mp3 eminem mp3 ringtone maker godsmack awake godsmack voodoo sean paul temperature sean paul we be burnin bad day daniel powter system of a down mp3 sean paul mp3 metallica mp3 shakira mp3 rascal flatts what hurts the most rascal flatts bless the broken road red hot chili peppers under the bridge james blunt wisemen bad day daniel powter godsmack mp3 Godsmack Awake godsmack voodoo sean paul temperature Sean Paul We Be Burnin natasha bedingfield unwritten 50 cent mp3 Bad Day Daniel Powter Daniel Powter mp3 Goodbye My Lover James Blunt System Of A Down mp3 Sean Paul mp3 Metallica mp3 Shakira mp3 Black Eyed Peas mp3 Madonna mp3 eminem mp3 Fall Out Boy Grand Theft Autumn Jack Johnson mp3 oscar dresses mother of the bride dresses cocktail dresses Flower Girl Dresses Formal prom Dresses Plus Size Prom Dresses Free Verizon Ringtone godsmack i stand alone goodbye my lover james blunt [fall out boy grand theft autumn jack johnson mp3 natasha bedingfield unwritten 50 cent mp3 nextel ringtone bad day daniel powter daniel powter mp3 verizon ringtone US Cellular Ringtone free sprint ringtone verizon ringtone verizon ringtone bcbg shoes free sprint ringtones cheap prom dresses sexy prom dresses waterford crystal swarovski crystal bead mesothelioma lawsuits mesothelioma symptoms mesothelioma diagnosis Cingular Ringtone free kyocera ringtones Free Nextel Ringtone informal wedding dresses bridal gowns Discount Bridal Gowns Plus Size Swimwear no fax payday loans countrywide home loans fast cash loan guaranteed Naturalizer Shoes Free Kyocera Ringtone formal prom dresses Sexy Prom Dresses Naturalizer Shoestowel warmer Aero Bed