Name
<link> — NN: 2, 3, 4 • MSIE: 2, 3, 4, 5 • HTML 4 • WebTV • Opera3
Synopsis
<link>
Defines a relationship between the current document and another
document. This tag goes within the <head>
portion of the document. It is often used to refer to an external
stylesheet.
Attributes
href=
url
Identifies the target document.
methods=
list
Specifies a browser-dependent list of comma-separated display methods for this link. It is not commonly used.
rel=
relationship
(such astoc
,glossary
, orparent
)Specifies the relationship of the current source document to the target. For example, rel=stylesheet is used to create a relationship with an external stylesheet.
rel=stylesheet
This attribute is used within the
<link>
tag to create a relationship with an external stylesheet.rev=
relationship
(such as toc, glossary, or parent)Specifies the relationship of the target document to the source.
title=
text
Provides a title for the target document.
type=
MIME-Type
Shows the type of an outside link. The value
text/css
indicates that the linked document is an external cascading style sheet.urn=
urn
Defines a location-independent Universal Resource Name (URN) for the referenced document. The actual syntax of the URN has not been defined, making this essentially a placeholder for future versions of HTML.
Get HTML Pocket Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.