> For the complete documentation index, see [llms.txt](https://todepond.gitbook.io/spacetode/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://todepond.gitbook.io/spacetode/sub-elements.md).

# Sub-Elements

You can create elements inside elements. This can help you to organise your code. Sub-elements do not appear in the SandPond menu.

```
element Snake {

    element Head {
        // Snake.Head code goes here...
    }

    element Tail {
        // Snake.Tail code goes here...
    }
}
```
