HTML area rel attribute
Examples
Image maps with clickable areas
<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.htm" rel="alternate">
</map>
<map name="planetmap">
<area shape="rect" coords="0,0,82,126" alt="Sun"
href="sun.htm" rel="alternate">
</map>
try it"
Browser Support
All major browsers support rel attribute
Definition and Usage
rel attribute specifies the relationship between the current document and the linked documents.
Differences between HTML 4.01 and HTML5
rel HTML5 attribute is the <area> tag to add properties.
grammar
<area rel="value">
Property Value
值 | 描述 |
---|---|
alternate | 文档的替代版本(比如打印页、翻译或镜像)。 |
author | 链接到文档的作者。 |
bookmark | 用于书签的永久网址 |
help | 链接到帮助文档 |
license | 链接到文档的版权信息。 |
next | 选项中的下一个文档 |
nofollow | nofollow 是一个HTML标签的属性值。这个标签的意义是告诉搜索引擎"不要追踪此网页上的链接"或"不要追踪此特定链接。 |
noreferrer | 如果用户点击链接指定浏览不要发送 HTTP referer 头部信息。 |
prefetch | 指定的目标文件应该被缓存 |
prev | 选项中的前一个文档 |
search | 文档链接到搜索工具 |
tag | 当前文档的标签(关键词) |