# Method `genNode`
**The last updated version of this function**: *2.1.0*  
Quickly create an HTML element
## Properties
### `.element(node, content, attr)`
| Parameter | Type     | Optional | Description                 |
| :-------: | :------: | :------: | :-------------------------: |
| node      | `String` |          | Node name of new element    |
| content   | `String` | Yes      | HTML Content of new element |
| attr      | `Object` | Yes      | Element attributes          |
### `.fromStr(str, isReturnCollection)`
| Parameter          | Type      | Optional | Description                                |
| :----------------: | :-------: | :------: | :----------------------------------------: |
| str                | `String`  |          | The string to be converted to HTML content |

This function will only create a single element at a time
### `.textNode(text)`
| Parameter | Type     | Optional | Description       |
| :-------: | :------: | :------: | :---------------: |
| text      | `String` |          | Text node content |
