Search notes:
HTML element: link
The <link>
tag allows authors to link a document to other resources.
as
color
crossorigin
href
hreflang
imagesizes
imagesrcset
integrity
media
See this example .
rel
Specifies the relationship between the document and the linked resource (such as <link rel="stylesheet" type="text/css href="…">
)
referrerpolicy
sizes
dimensons of icons in rel="icon"
title
type
At least one of href
or imagesrcset
must be present.
<link rel="stylesheet" type="text/css" href="external.css" >
<link rel="icon" type="image/vnd.microsoft.icon" href="/favicon.ico" >
The
<link>
tag belongs between the
<head>
and
</head>
.
rel=next / prev
Especially the next
attribute might be helpful for a user agent to preload a page to minimize the waiting time between two pages:
<link rel="prev" href="page_3.html">
<link rel="next" href="page_5.html">
rel=canonical
Create a canonical link. This is useful if a site serves pages with almost the same or similar content. The page linked to is the canonical page, i. e. the page that the
search engine should be indexing.
<link rel="canonical" href="main.html?content=all">
Also seen <link rel="shortcut icon" href="files/cto_layout/img/favicon.ico" type="image/x-icon">
<link rel="apple-touch-icon" href="files/cto_layout/img/apple-touch-icon.png">
<link rel="search" type="application/opensearchdescription+xml" href="https://…/abc.xml" title="…">
<link rel="preload" href="./xyz.css" as="style">
<link rel="alternate" type="application/rss+xml" title="…" href="https://…/xyz.rss" class="…">
See also
The
<link>
tag is semantically equivalent to the
HTTP Link
entity header field.