> For the complete documentation index, see [llms.txt](https://fademaze.gitbook.io/fademaze-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fademaze.gitbook.io/fademaze-docs/javascript/adding-elements.md). Agents can also search and read this documentation through its [MCP server](https://fademaze.gitbook.io/fademaze-docs/~gitbook/mcp).

# Adding elements

This guide will show you how to add elements, like headings, paragraphs, images.. anything in HTML.

### Simply one element, no change

```javascript
const p = document.createElement("p");
p.textContent = "Your text or HTML here";
```
