# html

function in `@dioramajs/effects/testing`

```ts
import { html } from '@dioramajs/effects/testing'
```

Adds an element with a viewport box.

```ts
function html(
  markup: string,
  x?: number,
  y?: number,
  width?: number,
  height?: number,
): HTMLElement
```

| Parameter | Type | Description |
| --- | --- | --- |
| `markup` | `string` |  |
| `x?` | `number` |  |
| `y?` | `number` |  |
| `width?` | `number` |  |
| `height?` | `number` |  |

Defined in [packages/effects/src/testing/gpu.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/effects/src/testing/gpu.ts#L276).
