> For the complete documentation index, see [llms.txt](https://roveroniandrea.gitbook.io/htpl-compiler/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://roveroniandrea.gitbook.io/htpl-compiler/syntax/variable-declaration.md).

# Variable declaration

Variables can be declared with the following syntax:

```markup
<h1 id="varName">
    <p>A value</p>
</h1>
```

which is compiled as

```javascript
let varName = 'A value';
```

More details about the `<p>` element in the next section
