# 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](/version-1.x-beta/reference/core-modules/css.md) and [Javascript](/version-1.x-beta/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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cherrycake.tin.cat/version-1.x-beta/reference/core-modules/htmldocument/htmldocument-methods.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
