h-adr: Difference between revisions
m (corrected intro) |
(dumped h-item spec) |
||
Line 1: | Line 1: | ||
<entry-title>h- | <entry-title>h-item</entry-title> | ||
<span class="h-card vcard"><span class="p-name fn">[[User:Tantek|Tantek Çelik]]</span> (<span class="p-role role">Editor</span>)</span> | <span class="h-card vcard"><span class="p-name fn">[[User:Tantek|Tantek Çelik]]</span> (<span class="p-role role">Editor</span>)</span> | ||
---- | ---- | ||
<dfn style="font-style:normal;font-weight:bold">h- | <dfn style="font-style:normal;font-weight:bold">h-item</dfn> is a simple, open format for publishing details about arbitrary items on the web. h-item is one of several open [[microformats|microformat]] draft standards suitable for embedding data in HTML/HTML5. | ||
h- | In practise, h-item is almost never used on it’s own, but rather as the '''p-item''' in a [[h-review]] as a generic fallback if the item being reviewed cannot be accurately represented by either an [[h-card]], [[h-product]], [[h-event]], [[h-adr]] or [[h-geo]]. | ||
== Example == | == Example == | ||
As the only properties defined by h-item are '''p-name''', '''u-url''' and '''u-photo''', in practise only the root classname is ever actually required (thanks to [[microformats-2-implied-properties]]) unless perhaps you have some unusual markup structure. | |||
<source lang=html4strict> | <source lang=html4strict> | ||
< | <a class="h-item" href="http://example.org/items/1"> | ||
<img src="http://example.org/items/1/photo.png" alt="" /> | |||
< | The Item Name | ||
</a> | |||
</ | |||
</source> | </source> | ||
== Properties == | == Properties == | ||
* '''<code>p- | * '''<code>p-name</code>''' - item name | ||
* '''<code>u-url</code>''' - permalink URL | |||
* '''<code>u-photo</code>''' - photo URL | |||
* '''<code> | |||
* '''<code> | |||
== Status == | == Status == | ||
'''h- | '''h-item''' is a microformats.org draft specification. Public discussion on h-item takes place on [[h-item-feedback]], the #microformats [[irc]] channel on irc.freenode.net, and [http://microformats.org/discuss/mail/microformats-new/ microformats-new mailing list]. | ||
== Property Details == | == Property Details == | ||
Line 72: | Line 33: | ||
== Examples in the Wild == | == Examples in the Wild == | ||
* … add any h- | * … add any h-item examples you find in the wild | ||
== Background == | == Background == | ||
h- | h-item was extracted from the classic [[hReview]] microformat as a way of referring to arbitrary reviewed items which cannot be represented by other microformats but which required a “shell” microformat due to the flat property requirement of microformats 2. | ||
== See Also == | == See Also == | ||
* [[microformats-2]] | * [[microformats-2]] | ||
* [[h- | * [[h-review]] | ||
Revision as of 23:13, 13 June 2013
<entry-title>h-item</entry-title> Tantek Çelik (Editor)
h-item is a simple, open format for publishing details about arbitrary items on the web. h-item is one of several open microformat draft standards suitable for embedding data in HTML/HTML5.
In practise, h-item is almost never used on it’s own, but rather as the p-item in a h-review as a generic fallback if the item being reviewed cannot be accurately represented by either an h-card, h-product, h-event, h-adr or h-geo.
Example
As the only properties defined by h-item are p-name, u-url and u-photo, in practise only the root classname is ever actually required (thanks to microformats-2-implied-properties) unless perhaps you have some unusual markup structure.
<a class="h-item" href="http://example.org/items/1">
<img src="http://example.org/items/1/photo.png" alt="" />
The Item Name
</a>
Properties
p-name
- item nameu-url
- permalink URLu-photo
- photo URL
Status
h-item is a microformats.org draft specification. Public discussion on h-item takes place on h-item-feedback, the #microformats irc channel on irc.freenode.net, and microformats-new mailing list.
Property Details
(stub, add any property explanations here)
Examples in the Wild
- … add any h-item examples you find in the wild
Background
h-item was extracted from the classic hReview microformat as a way of referring to arbitrary reviewed items which cannot be represented by other microformats but which required a “shell” microformat due to the flat property requirement of microformats 2.