HTML DOM Link Object
Link Objects
Link the object represents an HTML <link> element. Relations <link> element defines two links between documents.
<Link> element is defined in the head section of an HTML document.
Link Object Properties
W3C: W3C standards.
属性 | 描述 | W3C |
---|---|---|
charset | 设置或返回目标 URL 的字符编码。 | Yes |
href | 设置或返回被链接资源的 URL。 | Yes |
hreflang | 设置或返回目标 URL 的基准语言。 | Yes |
media | 设置或返回文档显示的设备类型。 | Yes |
rel | 设置或返回当前文档与目标 URL之间的关系。 | Yes |
rev | 设置或返回目标 URL 与当前文档之间的关系。 | Yes |
type | 设置或返回目标 URL 的 MIME 类型。 | Yes |
Standard properties and events
Link objects also supports the standard attributes and events .