HTML <link> rel Attribute
Example
<head>
<link rel="stylesheet" href="demo.css">
</head>
Meaning
The rel attribute names a relationship between the linked document and the current document.
Multiple values can be specified and should be separated by spaces.
Standard Syntax
HTML: <link rel="value" >
XHTML: <link rel="value" />
Advertisement
Attribute Values
| Value | Category | Description |
|---|---|---|
| alternate | Hyperlink | Gives alternate representations of the current document. |
| archives | Hyperlink | Deprecated. Provides a link to a collection of records, documents, or other materials of historical interest. |
| author | Hyperlink | Gives a link to the current document’s author. |
| dns-prefetch | Hyperlink | Specifies that the browser should preemptively perform DNS resolution for the target resource's origin |
| first | Hyperlink | Deprecated. Indicates that the current document is a part of a series, and that the first document in the series is the referenced document. |
| help | Hyperlink | Provides a link to context-sensitive help. |
| icon | External Resource | Imports an icon to represent the current document. |
| index | Hyperlink | Deprecated. Gives a link to the document that provides a table of contents or index listing the current document. |
| last | Hyperlink | Deprecated. Indicates that the current document is a part of a series, and that the last document in the series is the referenced document. |
| license | Hyperlink | Indicates that the main content of the current document is covered by the copyright license described by the referenced document. |
| next | Hyperlink | Indicates that the current document is a part of a series, and that the next document in the series is the referenced document. |
| pingback | External Resource | Gives the address of the pingback server that handles pingbacks to the current document. |
| preconnect | External Resource | Specifies that the browser should preemptively connect to the target resource's origin. |
| prefetch | External Resource | Specifies that the target resource should be preemptively cached. |
| preload | External Resource | Specifies the browser to download a resource because this resource will be needed later during the current navigation. |
| prerender | External Resource | Suggests that the browser fetch the linked resource in advance, and that it also render the prefetched content offscreen so it can be quickly presented to the user once needed. |
| prev | Hyperlink | Indicates that the current document is a part of a series, and that the previous document in the series is the referenced document. |
| search | Hyperlink | Gives a link to a resource that can be used to search through the current document and its related pages. |
| stylesheet | External Resource | Imports a stylesheet. |
| sidebar | Hyperlink | Deprecated. Specifies that the referenced document, if retrieved, is intended to be shown in the browser’s sidebar (if it has one). |
| tag | Hyperlink | Gives a tag (identified by the given address) that applies to the current document. |
| up | Hyperlink | Deprecated. Provides a link to a document giving the context for the current document. |