rev (HTML attribute)

Depr. Version
No HTML 3.2
Browser support (more…)
IE8 FF2 SA4 OP10 CH2
None None None None None




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."


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>


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).


Internet Explorer Firefox Safari Opera Chrome
5.5 6.0 7.0 8.0 1.0 1.5 2.0 1.3 2.0 3.1 4.0 9.2 9.5 10.0 2.0
None None None None None None None None None None None None None None None

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.

Related Products