(Difference between revisions)

Jump to: navigation, search
m (Reverted edit of SqrY0r, changed back to last version by Tantek)
Current revision (08:39, 7 April 2013) (view source)
m (Changed protection level for "class-design-pattern" [edit=sysop:move=sysop])
(9 intermediate revisions not shown.)

Current revision


Class design pattern


Use the class-design-pattern to indicate semantic meaning about XHTML elements. See the discussion of semantic-class-names for background.

How to use it


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 adds information indicating that certain elements represent vCard person or organization, its URL, Formatted Name, and Organization by the class design pattern:

<div class="vcard">
 <a class="url fn" href="">Tantek Çelik</a>,
 <span class="org">Technorati</span>

Note in particular:


See Also

class-design-pattern was last modified: Sunday, April 7th, 2013