rel-design-pattern: Difference between revisions
Jump to navigation
Jump to search
m (→How to use it) |
JohnAllsopp (talk | contribs) |
||
Line 35: | Line 35: | ||
* Microformats: [[rel-license]], [[rel-nofollow]], [[rel-tag]] | * Microformats: [[rel-license]], [[rel-nofollow]], [[rel-tag]] | ||
* Proposals: [[rel-directory]], [[rel-enclosure]] | * Proposals: [[rel-directory]], [[rel-enclosure]] | ||
* [http://microformats.org/wiki/rel-faq rel attribute FAQ] Discusses issues with the use of rel |
Revision as of 02:35, 3 January 2007
Rel design pattern
Purpose
Use the rel-design-pattern to indicate the meaning of a link (i.e. a href) in an XHTML document
How to use it
- define the semantic meaning of a link (
A
withhref
) within a microformat and give it a namemf-rel-value
- this definition may also extend to the value of elements and text enclosed by the link
- add
rel="mf-rel-value"
to hyperlinks that have that semantic meaning within that microformat. - simple microformats that use only the rel-design-pattern are typically named after the rel-value
Examples
rel="bookmark"
The HTML4 spec describes a bookmark as "a link to a key entry point within an extended document". By convention, this entry point also captures the notion of a "permalink".
<a href="archive/entry.html" rel="bookmark">A Document Entry</a>
rel="tag"
rel-tag defines semantic meaning for by the URI and enclosed elements using rel="tag"
<a href="http://technorati.com/tag/tech" rel="tag">tech</a>
See Also
- All microformat design patterns
- HTML 4.01 definition of the
A
element - HTML 4.01 definition of the
rel
attribute - Microformats: rel-license, rel-nofollow, rel-tag
- Proposals: rel-directory, rel-enclosure
- rel attribute FAQ Discusses issues with the use of rel