HTML and CSS Reference
In-Depth Information
Name
link
Synopsis
<link>
(XHTML:
<link/>
or
<link />
)
Defines the relationship between the current document and another document. Although it can
signifysuchrelationships asindex,next,andprevious,itismostoftenusedtolinkadocument
to an external style sheet.
Usage
Categories:
Metadatacontent(ifthe
itemprop
attributeispresent,wherephrasingcontentisexpected)
Permitted contexts:
Where metadata content is expected; in a
noscript
element that is a child of a
head
ele-
ment; if the
itemprop
attribute is present, where phrasing content is expected
Permitted content:
Empty
Start/end tags:
This is an empty (void) element, meaning it has only a start tag and may not have any con-
tents. In HTML, the end tag is forbidden. In XHTML, the element must be closed with a
trailing slash (
<link/>
or
<link />
).
Attributes
HTML5 Global Attributes
crossorigin="anonymous|use-credentials"
Not in HTML 4.01
. On a site that allows cross-origin access files, this attribute indicates
whether requests from other domains must present credentials.