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
- The disabled attribute enables or disables the link.
- The harset attribute contains the character enciding of the resource being linked to.
- The href attribute contains the URI of the linked resource.
- The hreflang attribute contains the language code of the linked resource.
- The media attribute is designed for use with one or more target media.
- The rel attribute contains the forward link type.
- The rev attribute contains the reverse link type.
- The target attribute contains the frame to render the resource in.
- The type attribute contains the advisory content type.
If you have comments or suggestions, email me at mbrady@nist.gov