English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The rel attribute specifies the relationship between the current document and the linked document, and is used only when the href attribute exists.
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 ‹/›
IEFirefoxOperaChromeSafari
All major browsers support the rel attribute
The rel attribute specifies the relationship between the current document and the linked document.
is used only when the href attribute exists.
rel attribute is an HTML5New attributes of the <area> tag in HTML.
<area rel="value">
Value | Description |
---|---|
alternate | Alternative version of the document (such as print page, translation, or mirror). |
author | Link to the author of the document |
bookmark | Permanent URL for bookmarks |
help | Link to the help document |
license | Link to the copyright information of the document |
next | Next document in the options |
nofollow | nofollow 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." |
noreferrer | If the user clicks the link and the specified browser does not send HTTP referer header information. |
prefetch | The specified target file should be cached |
prev | Previous document in the options |
search | The document is linked to a search tool |
tag | Tags (keywords) of the current document |