HTML rev Attribute

Beginner
4 min read
Updated: Oct 2026
3 examples
Live preview

Definition and Usage

The rev attribute described a reverse link relationship on <a> and <link>: how the linked document related back to the current page. It was the inverse of rel on the same element.

The WHATWG HTML Standard lists rev as obsolete. Authors must not use it. Prefer rel with an opposite term — for example, instead of rev="made", use rel="author".

Deprecated / obsolete.

Do not ship rev on new pages. Recognize it in legacy markup, then migrate to rel. Not related to reversed on <ol>.

HTML Syntax

syntax.html
<!-- obsolete --> <a href="…" rev=" link_type">
<!-- modern --> <a href="…" rel=" opposite_type">

Historically a space-separated list of link types (like rel). Same idea applied to <link>.

Attribute Values

Legacy keywords and the modern rel approach:

Legacy revMeaning (then)Use todayTry it
madeLinked resource was made by this page’s authorrel="author"Try it
subsectionCurrent page is a subsection of the targetrel="up" (or clear nav labels)Try it
relatedGeneral reverse relationshiprel from this page’s view (or plain link)Try it
rel (modern)Forward relationship — current → linkedPreferred attributerel guide

Live Preview

Pick a legacy rev value and see the recommended modern rel markup. The demo link is for study only.

Obsolete: do not use rev in production. Prefer the modern line below.

Markup compare

rev="made" (legacy) → rel="author" (modern)

HTML Examples

Legacy vs modern. Use Try It Yourself for a live editor — prefer the modern snippets.

Example 1 — rev="made" → rel="author"

The classic reverse relationship for an author homepage link.

HTML
<!-- obsolete -->
<a href="https://example.com/author" rev="made">Author</a>

<!-- modern -->
<a href="https://example.com/author" rel="author">Author</a>
Try It Yourself

How It Works

  1. Legacy: rev="made" said the target was made by this page’s author.
  2. Modern: say the same thing forward with rel="author".
  3. MDN note: obsolete rev="made" may still be treated like rel="author".
  4. New code: write rel only — drop rev.

Example 2 — Parent / subsection links

Express hierarchy from this page with rel, not reverse keywords.

HTML
<!-- obsolete: current page is a subsection of /html -->
<a href="/html" rev="subsection">HTML guide</a>

<!-- modern: linked resource is above this page -->
<a href="/html" rel="up">HTML guide</a>
Try It Yourself

How It Works

  1. rev described the current page relative to the target.
  2. rel="up" describes the target relative to the current page.
  3. One direction is enough — HTML5 dropped the reverse attribute.
  4. Readable labels still matter more than obscure link types for users.

Example 3 — Do Not Confuse with reversed

rev ≠ reversed. The latter is a valid Boolean on ordered lists.

HTML
<!-- wrong association: rev is not for lists -->
<!-- <ol rev> … -->

<!-- correct live attribute for reverse numbering -->
<ol reversed>
  <li>Third</li>
  <li>Second</li>
  <li>First</li>
</ol>
Try It Yourself

How It Works

  1. rev was a link-type attribute on a / link.
  2. reversed is a Boolean on <ol> that counts downward.
  3. Similar names — different elements and purposes.
  4. Study both pages so you pick the right attribute.

Edge Cases & Pitfalls

Most issues are using rev in new HTML or mixing it up with reversed.

obsolete

Validators flag rev

WHATWG: must not be used by authors. Remove it when you touch legacy pages.

seo

Do not expect SEO from rev

Modern crawlers care about rel (and content), not reverse link types.

name clash

rev ≠ reversed

Lists use reversed. Links use rel.

made

Historical rev="made"

May still map to author semantics in some UAs — still write rel="author".

Browser Support

rev is an obsolete HTML attribute on links. Engines may still parse it for compatibility; authors must not use it.

✓ Obsolete — do not use

rev

Recognized for legacy pages only. New markup should use rel with the opposite relationship term.

N/A Authoring status
Google Chrome Parse*
Legacy / ignore for authors
Mozilla Firefox Parse*
Legacy / ignore for authors
Apple Safari Parse*
Legacy / ignore for authors
Microsoft Edge Parse*
Legacy / ignore for authors
Opera Parse*
Legacy / ignore for authors
Samsung Internet Parse*
Legacy / ignore for authors
Internet Explorer Yes
Legacy support
rev Obsolete

Bottom line: *May remain in the DOM for old pages. Do not add rev to new HTML — migrate to rel.

Key Takeaways

  • Was: reverse of rel on a / link.
  • Now: obsolete — use rel with the opposite term.
  • Classic swap: rev="made" → rel="author".
  • Not the same as reversed on <ol>.

One line: rev was reverse rel — obsolete; write forward rel instead.

Frequently Asked Questions

On a and link, rev described the reverse relationship — how the linked document related back to the current page. It was the inverse of rel.
No. The WHATWG HTML Standard lists rev as obsolete on a and link. Authors must not use it. Express relationships with rel from each document’s own perspective.
Use rel="author". For historical compatibility, some browsers still treat rev="made" like rel="author", but new markup should use rel only.
rel = relationship of the linked resource to the current document. rev = relationship of the current document to the linked resource. Modern HTML keeps only rel.
No. reversed is a live Boolean on ol that reverses list numbering. rev was a legacy link-relationship attribute on a and link.
Many engines still expose a .rev IDL property for compatibility, but authors must not rely on it. Validators flag it; prefer rel.

Next: reversed

Reverse the numbering direction of an ordered list with a live Boolean attribute.

reversed tutorial →

CODETOFUN NEWS

Stay Ahead in Tech

Get the latest IT news, programming updates, and technology trends directly on your phone.

Your daily dose of tech, straight to your feed.

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

8 people found this page helpful