Microformats: Empowering Your Markup for Web 2.0 (英語) ペーパーバック – 2007/4/9
Kindle 端末は必要ありません。無料 Kindle アプリのいずれかをダウンロードすると、スマートフォン、タブレットPCで Kindle 本をお読みいただけます。
In this book, noted web developer and long time WaSP member John Allsop offers practical examples to teach all you need to know about Microformats. Coverage details what Microformats are currently available and how to use them; the general principles of how they work; how to use Microformats with web sites and software that already support them; and how to create your own. The end of the book features a chapter full of anecdotes from many professional web designers and developers already using Microformats in their work today--what worked, what didn't, things to watch for--so you can learn from their experiences.
From the reviews:
"Provides an introduction that explains what microformats are, and identifies some of the publishers of Web content. … Throughout the book, Allsop provides guidance on how to use CSS in order to present the microformatted information. … Allsop has done an excellent job of introducing the reader to microformats. He explains both how and why the use of microformats is important. I highly recommend that every Web professional becomes familiar with microformats. This is an excellent resource with which to begin." (Will Wallace, ACM Computing Reviews, Vol. 49 (8), August, 2008)商品の説明をすべて表示する
Microformats doesn't bug me. Infact, I was happily surprised by it.
In a nutshell, in addition to using class information on an HTML tag as a means of using CSS for presentation, you can also use it for conveying information. Microformats are well thought out nested elements that provide human readable text, but machine processable content. The idea is fairly trivial, which is why it works so well.
Turns out there are all kinds of wonderful applications, and this book walks you through the problem that's being solved, shows why the solution is elegant, gives you plenty of examples, and then demonstrates how to not just create, but to detect and read Microformats.
As an added bonus, the book touches on all kinds of little developer tools, tricks, and browser extensions that just are plain usable.
In short, the book over delivers without being verbose.
I would love to see an updated editon of this book come out in the near future to update us on any newer microformats that are available (which you can always check out a microformats.org) and also on companies that have since begun to use microformats (even more than say Yahoo! and Technorati).
Thanks for such a wonderfully written book.
The book is broken down into 5 parts, but I will look over each chapter individually.
Chapter 1 answers the question "What are Microformats?" This is a thorough introduction to Microformats, the semantic web, the benefits of using Microformats -- as well as it's origins, definition, and principles. The principles include:
- Solve a specific problem.
- Start as simply as possible.
- Are designed for humans first, machines second.
- Reuse building blocks from widely adopted standards.
- Are modular and embeddable.
Enable and encourage decentralized development, content, and services.
These are vital to the heart of Microformats. Though the web is aspiring to be semantic -- we still have many problems to solve to help out our machine friends in the process of making sense of our language.
Chapter 2 gives us some quick snapshot views into how Microformats are currently being used. Discussions of browsers, their support, and their future. It is exciting to see the possibilities of Microformats being built into the browsers -- since they are decentralized they will allow us to find things much easier (and make sense of those things). There are currently many tools available to aid a developer in creating the necessary markup and structure for formats. It is important to note that Microformats are not a new language, but are simply built onto already existing XHTML. The author presents the chicken and egg struggle and where Microformats are already being used in the wild. A few of those include, Yahoo, Cork'd and Apple. Not only are there early adopters on board, but there are services to help people make sense of the content. A few of these services include Technorati and Pingerati. These services all you to generate vCards from your properly formatted hCards. It also allows you to submit your site for Microformats searching. These are some powerful tools that will only continue to expand and grow.
Chapter 3 discusses the necessary foundation to create Microformats -- Semantic HTML. The author discusses the days of the web where HTML was wrongly turned into a presentational language. HTML is a structure. It is semantic. It gives meaning to your documents. Your presentation layer belongs in your CSS (most developers will know this, unless they are living under a rock). He discusses some of the not-so-popular HTML elements, as well as elaborating on their proper use and placement in a page. This chapter ends with the fact that HTML has its limits. There simply aren't enough tags for us to complete many of our common tasks (with semantics in mind). This is where Microformats come in.
Chapter 4 is where we start to get our feet wet. We are introduced to Link-Based Microformats. I won't elaborate on each, but a few of these include rel-license, rel-tag, and rel-nofollow. These are embedded in -- you guessed it -- links.
Chapter 5 takes your relationship a step further. Here we discuss XFN. If you have used any blogging software then you have most likely come into contact with this. This is defining your relationships based on the rel attribute. There are many relationships that can be defined, and several more that are planned to be added. This chapter shows some of the services already utilizing XFN, as well as how you can use the rel attribute and CSS attribute selectors to style your content. Lean, semantic, markup.
Chapter 6 looks to geo and adr Microformats. Geo is related to defining your location via latitude and longitude. We are also introduced to a new design pattern: abbr. The adr format is used to markup addresses. These two Microformats used together have added rich value to applications such as Google Maps, Yahoo Maps, and Flickr. Again, we are given some examples of styling these elements using their attributes as hooks.
Chapter 7 takes use a little deeper with hCard. hCard reuses the already established format of vCard used in many applications today. Both individual persons and organizations were discussed. Again, we are introduced to services currently using hCard, as well as several different ways to style our hCard using the given hooks.
Chapter 8 helps us to get our dates in order with hCalendar. Again, hCalendar extends from vcalendar (used in many applications like Outlook and Address Book) Both basic and complex events were discussed here. I like how we have the ability to add a calendar to a page and add multiple events to a specific calendar. This shows just how flexible Microformats are. We also get to see a complex example of a timeline marked up in a table. Here we see how Microformats utilizes the semantic markup to achieve specific tasks. Using axis, scope, and headers allow us to create an accessible table -- while also reaping the benefits of vevent. We get a glimpse of the tools available to help you construct hCalendars, as well as services currently using the hCalendar format.
Chapter 9 brings us to a few items in draft format, hReview and hResume. Though they are drafts, they are very solid and can be implemented in their current state. These items allow for great flexibility as we can use compound Microformats (just as we can use compounded XHTML elements). hReview has it's core, but certain elements allow for extensions of hCard, rel-tag and rel-license. Again, very powerful ways to build your Microformats into your pages. As with the other chapters, hooks were shown and some basic styling instructions were given.
Chapter 10 discusses hAtom. This doesn't seem to be as widely used as the other Microformats we have seen -- but there is still great value for syndication and publishing (alongside RSS).
Chapters 11 and 12 show Microformats in the wild with 2 case studies: Cork'd and Yahoo!. These chapters featured interviews with Dan Cederholm as well as Nate Koechley. Cork'd is a relatively new application with Microformats attached from the beginning. Designer Dan Cederholm discusses how and why they chose to use Microformats (and when) in their application. Moving up the scale to a larger organization, Yahoo! is utilizing Microformats in many of their major applications including Upcoming.org and Flickr. These case studios show how many organizations are starting to take hold of Microformats, and how simple the process really is to reap the benefits of your semantic structure.
Chapter 13 and the Appendixes discuss how to get involved with Microformats. The goal is to have a decentralized service, so Microformats are not as closed as other formal standards are. They are open to more developments as long as they stand in line with the principles behind the foundation. The appendixes give a full listing of all Microformats, Design Patterns, and the People and Services using Microformats in their applications. The appendixes are extremely valuable to have as a resource as you begin your journey with Microformats.
I have had a passion for Microformats for the past 6 months or so. I started researching and really diving in to understand the goals. I was immediately able to see the benefits -- but there was still the chicken and the egg question that was in the back of my mind. I don't feel this question is even necessary anymore, as I move ahead utilizing Microformats (and building applications to utilize them) in my development of websites. They don't take long to put in place as they go hand in hand with a solid HTML structure. So I guess the only question is: why wouldn't you use them?
This book was a great read, and will continue to be used as a great resource.