> For the complete documentation index, see [llms.txt](https://cherrycake.tin.cat/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cherrycake.tin.cat/reference/core-modules/htmldocument/htmldocument-methods.md).

# HtmlDocument methods

## footer

Builds a standard HTML footer, from the \</body> to the \</html> tags. Works with the Javascript module to implement deferred JavaScript capabilities.

**Returns:** The HTML footer

## header( setup ) <a href="#header" id="header"></a>

Builds a standard HTML header, from the `<html ... >` to the `<body ...>` tags. It works with the [Css](/reference/core-modules/css.md) and [Javascript](/reference/core-modules/javascript.md) modules to include the proper CSS/JavaScript calls.

* **`setup`** An optional hash array of the following optional setup keys:
  * **`bodyAdditionalCssClasses`** Additional CSS classes for the body element. Default: `false`

**Returns:** The HTML header
