HTMLLinkElement Interface


The LINK element specifies a link to an external resource, and defines this document's relationship to that resource (or vice versa).
IDL Definition

Interface HTMLLinkElement : HTMLElement {

           attribute  boolean                  disabled;
           attribute  DOMString                charset; 
           attribute  DOMString                href;
           attribute  DOMString                hreflang;
           attribute  DOMString                media;
           attribute  DOMString                rel;
           attribute  DOMString                rev;
           attribute  DOMString                target;
           attribute  DOMString                type;
};

Semantic Requirements

  1. The disabled attribute enables or disables the link.
  2. The harset attribute contains the character enciding of the resource being linked to.
  3. The href attribute contains the URI of the linked resource.
  4. The hreflang attribute contains the language code of the linked resource.
  5. The media attribute is designed for use with one or more target media.
  6. The rel attribute contains the forward link type.
  7. The rev attribute contains the reverse link type.
  8. The target attribute contains the frame to render the resource in.
  9. The type attribute contains the advisory content type.

If you have comments or suggestions, email me at mbrady@nist.gov