faq: Difference between revisions

From Microformats Wiki
Jump to navigation Jump to search
(added FAQ re: discuss list)
Line 71: Line 71:


It would make sense from a usability persepective to hyperlink geo information to a maps page or something, so that clicking it actually does something.  If you forced them to use a hypothetical "geo:" protocol instead, then that would interfere, since you can only hyperlink something to one destination.
It would make sense from a usability persepective to hyperlink geo information to a maps page or something, so that clicking it actually does something.  If you forced them to use a hypothetical "geo:" protocol instead, then that would interfere, since you can only hyperlink something to one destination.
Q: "Who controls microformats?"
A: An open community. Microformats are open standards licensed under Creative Commons Attribution. Much of the work here was begun on [[http://developers.technorati.com/wiki Technorati's Developer Wiki]], but Technorati has since divested control of these microformat standards to the open community here. The microformats.org domain is registered to [[http://www.commerce.net/ CommerceNet]], but CommerceNet claims no control over microformat standards. Anyone may follow the established [[process]] and contribute towards the development of microformat standards.


Q: ''Who is the registrar for microformats?''
Q: ''Who is the registrar for microformats?''

Revision as of 04:45, 23 June 2006

Microformats FAQ

This page document frequently asked questions about microformats. For frequently asked questions from the press, see press-faq.

wiki specific questions

Q: How do I create a username? Why won't it let me use my preferred username?

A: First, read this: http://en.wikipedia.org/wiki/Wikipedia:Username . Second, real names are preferred to pseudonyms/handles etc. Real names encourage better transparency and accountability. Third, the most common problem creating a user name is forgetting to caplitalize the first letter of the user name. Try using a WikiCase version of your full name as username, e.g. RyanKing.

email list

Q: I'm a newbie who tried posting to microformats-discuss. I haven't seen my post come up yet in email or online at the archives. Is there a moderation process?

A: No, there is no moderation on microformats-discuss, but it only accepts posts from subscribers. You MUST post to microformats-discuss using the email address you used to subscribe.


Basic Microformat Questions

Q: When should I use a microformat? What are they for?"

A: You are writing some html that contains useful human-readable information. You say to yourself: I would like to mark this up with some classes now for styling. You look up the relevant microformat, and you pull in the standard names. You don't have to make your own up, and now your page is machine-readable too. Bonus!

Microformats are designed to make the data you already publish for humans available to machines. It allows applications as simple as cut-and-paste or as complex as a seach engine to use your data effectively.

Q: Are microformats dependent upon (X)HTML?

A: Microformats are made to be embeddable. They can be embedded in (X)HTML, RSS, Atom or anywhere (X)HTML is allowed.

Q: Microformats sound great. How can I help?

A: First of all, take a look at http://microformats.org/discuss to see some ways to join the conversations about microformats.

Q: I'd like to make a donation to the microformat cause. How can I do this?

A: Thank you for your willingness to support microformats. We've only recently started this site and have decided that while we are figuring out exactly how to accept donations, we will be passing along donations to other good causes. Please consider donating to another cause like Red Cross, perhaps directed to help victims of recent natural disasters.

Q: Which microformats have been implemented?

See the implementations page.

Q: Which microformats should I implement?

A: Chances are you that your website already has data very similar to several microformats. For example, you probably have people and/or their contact information somewhere. That information could be marked up with hCard, see the hCard authoring page for step by step instructions. If you are publishing press releases, try using hAtom.

Q: Do you have any link badges I can add to my website/blog?

A: There are some buttons but we can certainly use more! Please contribute what you come up with!

Q. Are there any tools that support microformats?

A. Yes...tons... implementations.

Q. What about using new URI schemes instead of class names, e.g. for geo information?

A. In general, it is more work, and less content-publisher friendly, to ask publishers to use URI schemes instead of class names.

Authors aren't publishing links to geo information.

They're publishing *visible text* of geo information.

So the easiest thing to do, for the author, is to leave it as visible text.

Thus, it makes the most sense to do the simple thing of just wrapping that visible text with a little bit of markup, rather than asking the author to move (or copy) it into an attribute, which may or may not require a reformatting of the data as well.

It would make sense from a usability persepective to hyperlink geo information to a maps page or something, so that clicking it actually does something. If you forced them to use a hypothetical "geo:" protocol instead, then that would interfere, since you can only hyperlink something to one destination.

Q: "Who controls microformats?"

A: An open community. Microformats are open standards licensed under Creative Commons Attribution. Much of the work here was begun on [Technorati's Developer Wiki], but Technorati has since divested control of these microformat standards to the open community here. The microformats.org domain is registered to [CommerceNet], but CommerceNet claims no control over microformat standards. Anyone may follow the established process and contribute towards the development of microformat standards.

Q: Who is the registrar for microformats?

A: There is no central registry. Microformats are registered in a distributed manner using profiles. For more information on profiles see http://microformats.org/wiki/profile-uris and http://gmpg.org/xmdp/

Conflicts and interoperability are managed through social processes rather than a formal registry. Current microformat profiles can be found at http://gmpg.org, http://w3.org, and http://microformats.org.

Q: So multiple microformats with the same name can be valid?

A: Yes. The community at microformats.org can hopefully play a role in determining which is preferred by bringing interested folks together in one place and helping them resolve that question. As long as each microformat maintains a valid profile, each can be used effectively.

Q: How do I validate my microformated content?

A: Currently there is not an automatic validator for microformats (See to-do). You can always use the XMDPs for the specific microformats to at least verify the proper class names are being used.

Specific Microformat Questions

If you have a question regarding a specific microformat, you may want to check the FAQ specific to that microformat.

Class interactions

Q. Are there issues with page styling when specific class values are used?

A. There might be. However, any such issues can be easily (trivially) worked around by using contextual selectors.

Q. How does the use of class values for semantics interact with the use of class values for attaching CSS styles?

A. The class attribute takes a space separated set of class names HTML4 reference. Thus both author and microformat defined class names may be used in the same class attribute. In addition, microformat class names provide the author with a consistent set of class names to use for styling. If the author is already using using specific class names, they can continue to do so, and include microformat class names. If the author is already using a class name that happens to also be a microformat class name, then the author may want to consider using contextual CSS class selectors to make sure that avoid any unintentional styling effects.

See also:

<div> and <span> semantics

Q. Is it semantically meaningless to use divs?

A. Yes, both <div> and <span> have nearly no semantics. <div> can be used to represent a "division" of the page content. Similarly <span> can be used to reperesent that that "span" of text has some meaning, but the specifics of what that meaning is undefined by the <span>.

Q. Does the use of <div> and <span> elements add any semantics to web pages?

A. According to the spec, <div> and <span> "offer a generic mechanism for adding structure to documents." Their only meaning is in dividing documents into sections, and as such, their presence implies that the content within has a specific, but undefined by the element markup, semantic. Thus they are nearly semantic-free.

Q. Why do the examples on the wiki use <span> and <div> for nearly everything?

A. <span> and <div> are generic elements in HTML. When you use microformats, you should pick the most specific semantic element available.

Class semantics

Q. Do (X)HTML class names have semantics?

A. The HTML4 specification does not define any particular class values REF, nor does it define any particular semantic for class values REF, except that they "may be used for general user agent processing" REF. However, the " draft of "Hypertext Links in HTML", allows for a "profile" to define meanings for those classes. XMDP is a format for defining meta data profiles for (X)HTML, and thus an XMDP profile can be used to define the meanings of class names.

See also:

Indicating a page contains microformat markup

Q. Is there a way to indicate that a given web page contains markup that conforms to one or more microformats?

A. The HTML HEAD element's 'profile' attribute alerts applications to the potential presence of microformats. The W3C HTML Specification describes more about the profile attribute, and the XMDP description documents how it is used.

Microformats and Spam

Q. Given that Google now looks at hidden content as potential spam, will invisible microformats be considered spam?

A. Don't do that. Microformats provide a mechanism for marking up visible content. Any mechanism for embedding invisible or hidden content risks being considered spam due to the fact that invisible (meta)data inevitably ends up being abused. Avoid invisible (meta)data. Publish visible data.

Design Patterns with Abbr & Title

Q. In the datetime design pattern the title attribute is used for the value of the property and the node value is used as the display value. <abbr title="value-here">Display-Here</abbr>. Why is ABBR being used when the title attribute is available on all HTML elements?

A. The short answer is that <abbr> has the correct semantics.

The longer answer is that the value is often an abbreviated version of the formal value. Of course, if you don't want to use an <abbr>, you can use another element like this:

<abbr title="2006-12-31T12:59:59Z" class="dtstamp">New Year</abbr>

<span class="dtstamp">2006-12-31T12:59:59Z</span>

In addition, microformats encourage the content to be visible and thus prefer the text of an element rather than using the 'title' attribute or any other less visible alternative. The exception is made for datetimes and abbr due to the fact that microformats are for humans first, machines second. Thus the content of the abbr element is used to provide human visible content and the machine equivalent is placed in the less visible (but still easily verifiable) 'title' attribute.


Nesting of elements

Q. It seems that <span class="vcard fn org" id="club">...</span> should work, no?

A. No. See [1]