Name
<link> — NN 4, 6 MSIE 2, 3, 4, 5, 5.5, 6 HTML 4.01 WebTV Opera5
Synopsis
<link> (no end tag)
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
style sheet.
Attributes
-
href=url Identifies the target document.
-
media=screen|tty|tv|projection|handheld|print|braille|aural|all Identifies the target medium for the linked document so an alternate style sheet can be accessed. The media attribute is explained in more detail in Chapter 5.
-
rel=relation Describes the relationship from the current source document to the target. Common relationship types include
stylesheet,next,prev,copyright,index, andglossary.
-
rev=relation Specifies the relationship of the target document back to the source (the opposite of the
relattribute).
-
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.
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