---
id: fast-element.htmlview._constructor_
title: HTMLView.(constructor)
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-element](./fast-element.md) &gt; [HTMLView](./fast-element.htmlview.md) &gt; [(constructor)](./fast-element.htmlview._constructor_.md)

## HTMLView.(constructor)

Constructs an instance of HTMLView.

<b>Signature:</b>

```typescript
constructor(fragment: DocumentFragment, behaviors: Behavior[]);
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  fragment | DocumentFragment | The html fragment that contains the nodes for this view. |
|  behaviors | [Behavior](./fast-element.behavior.md)<!-- -->\[\] | The behaviors to be applied to this view. |
