HTML link rel attribute
Browser Support
All major browsers support rel attribute.
Definition and Usage
rel attribute is required, the provisions of the current document and the linked document relations / resources.
Differences between HTML 4.01 and HTML5
In HTML5, spilling some of the HTML 4.01 value, it adds some new value.
grammar
<link rel="value">
Property Value
值 | 描述 |
---|---|
alternate | 链接到该文档的替代版本(比如打印页、翻译或镜像)。 |
author | 链接到该文档的作者。 |
help | 链接到帮助文档。 |
icon | 导入表示该文档的图标。 |
license | 链接到该文档的版权信息。 |
next | 表示该文档是集合中的一部分,且集合中的下一个文档是被引用的文档。 |
prefetch | 规定应该对目标资源进行缓存。 |
prev | 表示该文档是集合中的一部分,且集合中的上一个文档是被引用的文档。 |
search | 链接到针对文档的搜索工具。 |
stylesheet | 要导入的样式表的 URL。 |
HTML <link> tag