# AsValue

> Represents values for the HTML as attribute used with preload link types.

[API reference](/docs/api/index.md) › [HTML Attribute](/docs/extensions/html-attribute/reference/index.md) › [Values](/docs/extensions/html-attribute/reference/values/index.md) › AsValue

| enum | `UIAwesome\Html\Attribute\Values\AsValue` |
| --- | --- |
| Backed by | `string` |
| Source | [`src/Values/AsValue.php`](https://github.com/ui-awesome/html-attribute/blob/main/src/Values/AsValue.php#L12) |

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>.

## Cases

| Case | Value | Description |
| --- | --- | --- |
| <span id="case-AUDIO"></span>`AUDIO` | `'audio'` | `audio` — Applies to `<audio>` elements. |
| <span id="case-DOCUMENT"></span>`DOCUMENT` | `'document'` | `document` — Applies to `<iframe>` and `<frame>` elements. |
| <span id="case-EMBED"></span>`EMBED` | `'embed'` | `embed` — Applies to `<embed>` elements. |
| <span id="case-FETCH"></span>`FETCH` | `'fetch'` | `fetch` — Applies to fetch, XHR requests. |
| <span id="case-FONT"></span>`FONT` | `'font'` | `font` — Applies to CSS @font-face. |
| <span id="case-IMAGE"></span>`IMAGE` | `'image'` | `image` — Applies to `<img>` and `<picture>` elements with srcset or imageset attributes, SVG `<image>` elements, CSS `*-image` rules. |
| <span id="case-OBJECT"></span>`OBJECT` | `'object'` | `object` — Applies to `<object>` elements. |
| <span id="case-SCRIPT"></span>`SCRIPT` | `'script'` | `script` — Applies to `<script>` elements, Worker `importScripts`. |
| <span id="case-STYLE"></span>`STYLE` | `'style'` | `style` — Applies to `<link rel=stylesheet>` elements, CSS `@import`. |
| <span id="case-TRACK"></span>`TRACK` | `'track'` | `track` — Applies to `<track>` elements. |
| <span id="case-VIDEO"></span>`VIDEO` | `'video'` | `video` — Applies to `<video>` elements. |
| <span id="case-WORKER"></span>`WORKER` | `'worker'` | `worker` — Applies to Worker, SharedWorker. |