> For the complete documentation index, see [llms.txt](https://docs.novarietygames.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.novarietygames.com/websitecreator/luascript/dom/document/createnode.md).

# createNode

The method **`createNode()`** creates the HTML element specified by *tagName.* Within the arguments you may also include attributes and the text included.

<pre class="language-javascript"><code class="lang-javascript"><strong>document.createNode(TagName,AttributeTable,Text)
</strong></code></pre>

Examples

```lua
document.createNode("p",{id="id",style="color:red"},"This is a paragraph element!")
```

```javascript
document.createNode("frame",{["frame-data"]="E_E",style="background-color:red"},"<p>Paragraph within the frame</p>")
```
