Movatterモバイル変換


[0]ホーム

URL:


  1. Веб-технологии для разработчиков
  2. Интерфейсы веб API
  3. HTMLLinkElement

This page was translated from English by the community.Learn more and join the MDN Web Docs community.

View in EnglishAlways switch to English

HTMLLinkElement

Baseline Widely available *

This feature is well established and works across many devices and browser versions. It’s been available across browsers since июль 2015 г..

* Some parts of this feature may have varying levels of support.

ИнтерфейсHTMLLinkElement представляет справочную информацию для внешних ресурсов и отношение этих ресурсов к документу и наоборот (соответствует элементу<link>; не путать с<a>, который представлен элементомHTMLAnchorElement). Этот объект наследует все свойства и методы интерфейсаHTMLElement.

must be a string

Свойства

Наследует свойства от своего родителя,HTMLElement, иLinkStyle.

HTMLLinkElement.as

ЭтоDOMString представляющий тип контента загружаемый по HTML ссылке.

HTMLLinkElement.crossOriginЭкспериментальная возможность

Is aDOMString that corresponds to the CORS setting for this link element. SeeCORS settings attributes for details.

HTMLLinkElement.disabled

Is aBoolean which represents whether the link is disabled; currently only used with style sheet links.

HTMLLinkElement.href

Is aDOMString representing the URI for the target resource.

HTMLLinkElement.hreflang

Is aDOMString representing the language code for the linked resource.

HTMLLinkElement.media

Is aDOMString representing a list of one or more media formats to which the resource applies.

HTMLLinkElement.referrerPolicyЭкспериментальная возможность

Is aDOMString that reflects thereferrerpolicy HTML attribute indicating which referrer to use.

HTMLLinkElement.rel

Is aDOMString representing the forward relationship of the linked resource from the document to the resource.

HTMLLinkElement.relListТолько для чтения

Is aDOMTokenList that reflects therel HTML attribute, as a list of tokens.

HTMLLinkElement.sizesТолько для чтения

Is aDOMSettableTokenList that reflects thesizes HTML attribute, as a list of tokens.

LinkStyle.sheetТолько для чтения

Returns theStyleSheet object associated with the given element, ornull if there is none.

HTMLLinkElement.type

Is aDOMString representing the MIME type of the linked resource.

Устаревшие свойства

HTMLLinkElement.charset

Is aDOMString representing the character encoding for the target resource.

HTMLLinkElement.rev

Is aDOMString representing the reverse relationship of the linked resource from the resource to the document.

Примечание:Currently the W3C HTML 5.2 spec states thatrev is no longer obsolete, whereas the WHATWG living standard still has it labeled obsolete. Until this discrepancy is resolved, you should still assume it is obsolete.

HTMLLinkElement.target

Is aDOMString representing the name of the target frame to which the resource applies.

Методы

Не имеет методов; наследует методы от своего родителя,HTMLElement, иLinkStyle.

Спецификации

Specification
HTML
# htmllinkelement

Совместимость с браузерами

Смотрите также

  • Элемент HTML, реализующий этот интерфейс:<link>.

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2026 Movatter.jp