HTML DOM Link Object
Link Object
The Link object represents an HTML . element defines the relationship between two linked documents.
The element is defined in the head section of the HTML document.Link Object Properties
W3C: W3C standard.
| property | Description | W3C |
|---|---|---|
| charset | Sets or returns the character encoding of the target URL. | Yes |
| href | Sets or returns the URL of the linked resource. | Yes |
| hreflang | Sets or returns the base language of the target URL. | Yes |
| media | Sets or returns the device type on which the document is displayed. | Yes |
| rel | Sets or returns the relationship between the current document and the target URL. | Yes |
| rev | Sets or returns the relationship between the target URL and the current document. | Yes |
| type | Sets or returns the MIME type of the target URL. | Yes |
Standard properties and events
The Link object also supports the standard property and Events.