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=urlIdentifies the target document.
methods=listSpecifies 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=stylesheetThis 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=textProvides a title for the target document.
type=MIME-TypeShows the type of an outside link. The value
text/cssindicates that the linked document is an external cascading style sheet.urn=urnDefines 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.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access