19 out of 34 rated this helpful - Rate this topic

link element | link object

[This documentation is preliminary and is subject to change.]

Enables the current document to establish links to external documents.

Document Object Model (DOM) Level 2 HTML Specification, Section 1.6.5HTML 4.01 Specification, Section 12.3

Standards information

HTML information

Closing Tagforbidden
CSS Display

DOM Information

Inheritance Hierarchy

 Node
  Element
   HTMLElement
     link

Remarks

The link element can be used only within the head tag.

Windows Internet Explorer 8 and later. The behavior of the href and the rel attributes depends on the current document compatibility mode.

Examples

This example uses the link element to apply an external style sheet, called styles.css, to the page.


<link rel=stylesheet href="styles.css" type="text/css">

 

 

Build date: 3/8/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ