
## create_new {#aspose.html.HTMLDocument}

Creates a new [`HTMLFormElement`](/html/python-net/aspose.html/htmlformelement) and associated it with [`FormEditor`](/html/python-net/aspose.html.forms/formeditor). [`HTMLFormElement`](/html/python-net/aspose.html/htmlformelement) is created in the detached from the document state; in order to attach it to the document, please select proper location and use [`Node.append_child`](/html/python-net/aspose.html.dom/node/append_child) method.


### Returns 


Return a new instance of the [`FormEditor`](/html/python-net/aspose.html.forms/formeditor) class


```python
def create_new(self, document):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| document | [`HTMLDocument`](/html/python-net/aspose.html/htmldocument) | The [`HTMLDocument`](/html/python-net/aspose.html/htmldocument). |



### See Also
* module [`aspose.html.forms`](../../)
* class [`FormEditor`](/html/python-net/aspose.html.forms/formeditor)
* class [`HTMLDocument`](/html/python-net/aspose.html/htmldocument)
* class [`HTMLFormElement`](/html/python-net/aspose.html/htmlformelement)
