English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Reference Manual

HTML Tag Reference

HTML: <area> rel attribute

The rel attribute specifies the relationship between the current document and the linked document, and is used only when the href attribute exists.

 HTML <area> tag

Online Example

Image map with clickable areas:

<!DOCTYPE html>
<html>
<title>HTML:<area> rel attribute - 基础教程网 oldtoolbag.com</title>
<body>
<p>Click on the sun to observe it closely:</p>
<img src="planets.gif" width="145" height="126" alt="Planets" usemap="#planetmap">
<map name="planetmap">
  <area shape="rect" coords="0,0,82,126" alt="Sun" href="sun.html" rel="alternate">
</map>
</body>
</html>
Test to see ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

All major browsers support the rel attribute

Definition and Usage

The rel attribute specifies the relationship between the current document and the linked document.
is used only when the href attribute exists.

HTML 4.01 with HTML5difference

rel attribute is an HTML5New attributes of the <area> tag in HTML.

Syntax

<area rel="value">

Attribute value

ValueDescription
alternateAlternative version of the document (such as print page, translation, or mirror).
authorLink to the author of the document
bookmarkPermanent URL for bookmarks
helpLink to the help document
licenseLink to the copyright information of the document
nextNext document in the options
nofollownofollow is a value of an HTML tag attribute. The meaning of this tag is to tell the search engine "Do not track links on this web page" or "Do not track this specific link."
noreferrerIf the user clicks the link and the specified browser does not send HTTP referer header information.
prefetchThe specified target file should be cached
prevPrevious document in the options
searchThe document is linked to a search tool
tagTags (keywords) of the current document

 HTML <area> tag