ⓘ link – inter-document relationship metadata # T
The
link
element represents metadata that expresses inter-document
relationships.
Permitted attributes #
-
ⓘ
global attributes
- Any attributes permitted globally.
-
ⓘ
href =
Non-empty URL potentially surrounded by spaces
#
- A URL that provides the destination of the
link.
-
ⓘ
rel = d:link-rel
#
- A list of tokens that specify the relationship between
the document containing the
link
and the destination indicated by the
link.
-
ⓘ
hreflang =
language tag
#
- The language of the destination of the
link.
A valid
language tag
as defined in
[BCP 47].
-
ⓘ
media =
media-query list
#
- The media for which the destination of the
link
was designed.
-
ⓘ
type =
MIME type
#
- The MIME type of the destination of the
link.
A string that identifies a valid
MIME media type
as defined in
[RFC 2046].
-
ⓘ
sizes =
"any"
or sizes
NEW
#
- The sizes of icons for visual media.
Additional constraints and admonitions #
-
The target attribute on the link element is obsolete.
You can safely omit it.
-
The urn attribute on the link element is obsolete.
Specify the preferred persistent identifier using the href attribute instead.
-
The charset attribute on the link element is obsolete.
Use an HTTP Content-Type header on the linked resource instead.
-
The methods attribute on the link element is obsolete.
Use the HTTP OPTIONS feature instead.
-
The rev attribute on the link element is obsolete.
Use the rel attribute instead, with a term having the opposite meaning.
Permitted parent elements #
any element that can contain
metadata elements, noscript
Typical default display properties #