HTMLLinkElement: sheet property

فهرست فصل‌ها دانلود آرشیوناشر

MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونه‌کد

{{APIRef("HTML DOM")}}

The **sheet** read-only property of the {{domxref("HTMLLinkElement")}} interface contains the stylesheet associated with that element.

A stylesheet is associated to an HTMLLinkElement if rel="stylesheet" is used with <link>.

Value

A {{DOMxRef("CSSStyleSheet")}} object, or null if none is associated with the element.

Examples

html
<link rel="stylesheet" href="styles.css" />

The sheet property of the HTMLLinkElement object will return the {{domxref("CSSStyleSheet")}} object describing styles.css.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}