AsValue
API reference › HTML Attribute › Values › AsValue
Represents values for the HTML as attribute used with preload link types.
See also: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/link#as.
| Case | Value | Description |
|---|---|---|
AUDIO | 'audio' | audio — Applies to <audio> elements. |
DOCUMENT | 'document' | document — Applies to <iframe> and <frame> elements. |
EMBED | 'embed' | embed — Applies to <embed> elements. |
FETCH | 'fetch' | fetch — Applies to fetch, XHR requests. |
FONT | 'font' | font — Applies to CSS @font-face. |
IMAGE | 'image' | image — Applies to <img> and <picture> elements with srcset or imageset attributes, SVG <image> elements, CSS *-image rules. |
OBJECT | 'object' | object — Applies to <object> elements. |
SCRIPT | 'script' | script — Applies to <script> elements, Worker importScripts. |
STYLE | 'style' | style — Applies to <link rel=stylesheet> elements, CSS @import. |
TRACK | 'track' | track — Applies to <track> elements. |
VIDEO | 'video' | video — Applies to <video> elements. |
WORKER | 'worker' | worker — Applies to Worker, SharedWorker. |