[microformats-discuss] XHTML "id" attribute and microformats, particularly hCard

David Janes -- BlogMatrix davidjanes at blogmatrix.com
Sun Oct 16 07:43:51 PDT 2005

I was thinking that some microformats should recommend the use of the 
XHTML attribute "id" [1]. Why? Because this allows us to make much more 
powerful claims about facts on Internet. For example, consider the hCard 
in the wild examples [2]:

| Neil Dunn (http://www.ndunn.com) has published his rather good looking 
hCard (http://www.ndunn.com/2005/10/7/hCard)

Now, if Neil had marked the vcard on this page with an "id" -- i.e. the 
vard looked like this

| <div class="vcard" id="NeilDunnHCard">
| 	... the gory details ...
| </div>

We would be able to make a more interesting statement:

| Neil Dunn's rather good looking hCard IS
| http://www.ndunn.com/2005/10/7/hCard#NeilDunnHCard

There are many situations where this would be handy, not least of all 
where there's many hCards on a page. I have a few other followup ideas 
but I thought I'd get this one out there first.

The language of the recommendation is fairly simple:

| hCard blocks SHOULD have an XHTML "id" attribute.

Regards, etc...

[2] http://microformats.org/wiki/hcard#Examples

More information about the microformats-discuss mailing list