• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 11. Creating Links > Linking Documents with <link>

11.8. Linking Documents with <link>

The <link> tag is used to define a relationship between the current document and another external document. It is always placed in the header (<head>) of the document. There can be multiple <link> tags in a document. The most important attributes are href, which points to the linked file, and rel, which describes the relationship from the source document to the target document. The rev attribute describes the reverse relationship (from the target back to the source).

A variety of attributes make the <link> tag very versatile, but it is not currently used to its full potential. The most popular application of the <link> tag is for referring to an external style sheet. In this example, the type attribute identifies the MIME content type of the linked document as a cascading style sheet:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint