Microformats are small patterns of HTML to represent commonly published things like people, events, blog posts, reviews and tags in web pages.
Microformats enable the publishing of higher fidelity information on the Web; the fastest and simplest way to provide feeds and APIs for the information in your website.
<b>, <br>, <i>, ...
)<a>
<div class="vevent">
<a class="url" href="http://www.web2con.com/">http://www.web2con.com/</a>
<span class="summary">Web 2.0 Conference</span>:
<abbr class="dtstart" title="2007-10-05">October 5</abbr>-
<abbr class="dtend" title="2007-10-20">19</abbr>,
at the <span class="location">Argent Hotel, San Francisco, CA</span>
</div>
vcalendar
vevent
dtstart
(ISO Date), vyžadovánasummary
, vyžadovánalocation, url, dtend, duration, rdate, rrule, category, description, uid, geo, ...
N, FN
)vcard
fn
- vyžadovánon (family-name, given-name, additional-name, honorific-prefix, honorific-suffix)
- vyžadováno (i nemusí)nickname, sort-string, url, email (type, value), tel (type, value), adr (post-office-box, extended-address, street-address, locality, region, postal-code, country-name, type, value), geo (latitude, longitude), tz, photo, logo, sound, bday, title, role, org (organization-name, organization-unit), category, note, class, key, mailer, uid, rev
abbr
- hodnota v atributu title
a
- hodnota v atributu href
pro vlastnost photo
jinak hodnota je obsahem elementuimg
- hodnota v atributu src
, kde hodnotou je URL pro vlastnost photo
jinak hodnota je v atributu alt
object
- hodnota v atributu data
pro vlastnost photo
, jinak hodnota je obsahem elementu
<div class="vcard">
<a class="fn org url" href="http://www.commerce.net/">CommerceNet</a>
<div class="adr">
<span class="type">Work</span>:
<div class="street-address">169 University Avenue</div>
<span class="locality">Palo Alto</span>,
<abbr class="region" title="California">CA</abbr>
<span class="postal-code">94301</span>
<div class="country-name">USA</div>
</div>
<div class="tel">
<span class="type">Work</span> +1-650-289-4040
</div>
<div>Email: <span class="email">info@commerce.net</span></div>
</div>
rel
mikroformátyrel="license"
<a href="http://creativecommons.org/licenses/by/2.0/" rel="license">cc by 2.0</a>
rel="nofollow"
<a href="http://mybusinesscompetitor.com/" rel="nofollow">visit bussiness friends</a>
rel="tag"
<a href="http://mybusinesscompetitor.com/" rel="tag">stinky</a>
rev
vote-for
vote-against
vote-abstain
<a rev="vote-for" href="http://example.com/cheesevote"
title="Melt the cheese!">Do it!</a>
<a rev="vote-against" href="http://example.com/cheesevote"
title="Don't melt the cheese!">Don't do it!</a>
rel
- >a href="http://be.in/lucka" rel="met acquaintance">Lucka</a>
typ vztahu | XFN hodnoty |
---|---|
přátelský (jeden z): |
friend acquaintance contact |
fyzický: | met |
preofesionální: | co-worker
colleague
|
geografický (jeden z): | co-resident
neighbor |
rodinný (jeden z): | child
parent
sibling
spouse
kin |
romantický: | muse
crush
date
sweetheart |
identita: | me |
<dl class="profile">
<dt id="rel">rel</dt>
<dd><p><a rel="help" href="http://www.w3.org/TR/html401/struct/links.html#adef-rel">HTML4 definition of the 'rel' attribute.</a> Here is an additional value.</p>
<dl>
<dt id="license">license</dt>
<dd>Indicates that the referred resource is a license for the referring page.</dd>
</dl>
</dd>
</dl>
When we were discussing Attention.xml, Tantek pointed out that XHTML has everything necessary for semantically expressing outlines and blogroll-like subscriptions in an XML format that is both interactively renderable by browsers and parsable by strict XML engines. This page is here to discuss this idea.
The XOXO document type is made up of the following XHTML modules. The elements, attributes, and minimal content models associated with these modules are defined in "Modularization of XHTML" (XHTMLMOD). The elements are listed here for information purposes, but the definitions in "Modularization of XHTML" should be considered definitive. In the on-line version of this document, the module names in the list below link into the definitions of the modules within the current version of "Modularization of XHTML".