Skip to: content, navigation

by Ian Lloyd

rev (HTML attribute)

Spec
Depr. Version
No HTML 3.2
Browser support full matrix
IE7 FF2 Saf3 Op9.5
None None None None
rev="string"

Example

In the following example, the link to the cakes list is defined so that the rel(ationship) shows that the linked document is a page that’s classified as a "product-line". Meanwhile, the rev attribute indicates that the linked page would treat the referencing page as an index of menus (or "menu-index"):

<p>You can try our <a href="cakes.html" rel="product-line"
    rev="menu-index">lovely range of cakes</a>.</p>

Description

The rev attribute is essentially the reverse of the rel attribute. The rev defines what this document is in relation to the document to which it links (as defined in the href attribute). To put this in colloquial terms (note that these values are not real values!):

  • rel = "This is what I call that fellow over there."
  • rev = "This is what that fellow over there thinks I am."

Value

This attribute can take any value—even a series of space-separated values. Some conventions are beginning to form around the use of the rel attribute (there’s more about this in Microformats).

Compatibility

IE5.5None
6.0None
7.0None
Firefox1.0None
1.5None
2.0None
Safari1.3None
2.0None
3.0None
Opera9.2None
9.5None

The support charts for this element show that there’s no support, as no browser renders the links that use this attribute any differently from normal links. The real value of adding a rev (or rel) attribute is gained either by utilizing it to add functionality via JavaScript and the DOM, or through a centralized web service of some kind that may be able to make use of the attribute’s content (perhaps for analytical purposes, or for refining search results).

User-contributed notes

There are no comments yet.

Add a note

To post a note on this topic, please log in with your SitePoint username and password. If you don't have an account yet, you can create a new account for free.

Related Products

The Principles of Beautiful Web Design

Best Seller!

You don’t need to go to Art School to design great looking web sites!

Book Cover: The Principles of Beautiful Web Design

Download the FREE sample chapters