[uf-discuss] RFC: sHTML Video Thumbnailing

Paul Wilkins paul_wilkins at xtra.co.nz
Sun May 27 18:55:04 PDT 2007


http://www.w3.org/TR/html401/struct/links.html#h-12.1.2

My simplified understanding of the relationship between rel and rev is

With the rel attribute, the relationship that the linked page has to this 
link is "foo".
With the rev attribute, the relationship that this link has from the linked 
page is "foo".

Use "previous" or "next" as the link values and you'll understand what's 
going on.

From: "Patrick H. Lauke" <redux at splintered.co.uk>
> Charles Iliya Krempeaux wrote:
>
>>> <a rev="thumbnail" href="http://example.com/video">
>>>    <img src="http://example.com/thumbnail.jpg">
>>> </a>
>>
>> I'm not sure if the "rev" attribute is being used correctly in your 
>> markup.
>
> Rev defines the reverse link to the current document, not to whatever is 
> encapsulated by the link itself...unless I'm reading the spec wrong
> "This attribute describes the relationship from the current document to 
> the anchor specified by the href attribute"
> http://www.w3.org/TR/html401/struct/links.html#edef-A

A rel link from the video page to the thumbnail would be "thumbnail".
So, a rev link on the thumbnail to the video page would also be "thumbnail".

I've got no problem with using rel and rev values myself, but if you're 
going to use a a custom link-type that's not actually defined in 
http://www.w3.org/TR/html401/types.html#type-links then you should use a 
profile to define what's going on.

-- 
Paul Wilkins 



More information about the microformats-discuss mailing list