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.
-
rev=relation Specifies the relationship from the target document to the source.
-
rel=relation Specifies the relationship from the current source document to the target.
-
rel=stylesheet This attribute is used within the
<link>tag to create a relationship with an external stylesheet.-
title=text Provides a title for the target document.
-
type=resource Shows the type of an outside link. The value
text/cssindicates 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 more of 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