BTrem

articles tagged “microformats”

Adding Microformats to SVG

Using SVG in web pages offers many advantages:

  • SVG file sizes are usually small compared to bitmapped graphics
  • it adapts well to different screen resolutions and display dimensions
  • it can be styled with CSS
  • it can be scripted
  • SVG <text> elements can be indexed by search engines

To that list, we can add one more: the ability to add microformats to embedded SVG elements.

microformats food menu idea

This is a rough sketch for a food menu microformat that I first suggested on the microformats irc channel in late . Following that suggestion, I added several ideas to a newly created wiki page devoted to menu brainstorming. I then decided to try out some of those ideas by marking up web pages with food menus, which meant I had to come with names for the root menu and its properties. The proposal in this article is a result of that effort.

microformats include pattern idea

The current microformats include pattern offers two methods — using <object> or <a> — to include in a microformat element parts of a document that are outside of that microformats element's DOM tree. Both patterns have problems, and have not been widely adopted. Also, the include pattern has not been updated for microformats 2.