# HtmlHead

Writes text to the head section of a generated HTML page.

It is useful for embedding JavaScript code, or putting other HTML tags, such as meta, link, title, or base in an HTML page header.

If there is no head section in the HTML page, the function will create one.

## Method Signature

```
HtmlHead(text=[string])
```

### Arguments

| Argument | Type     | Required | Description                                   | Default |
| -------- | -------- | -------- | --------------------------------------------- | ------- |
| `text`   | `string` | `true`   | Text to add to the head area of an HTML page. |         |

## Examples

## Related

* [FileUpload](https://boxlang.ortusbooks.com/boxlang-framework/modularity/web-support/reference/built-in-functions/web/fileupload)
* [FileUploadAll](https://boxlang.ortusbooks.com/boxlang-framework/modularity/web-support/reference/built-in-functions/web/fileuploadall)
* [Forward](https://boxlang.ortusbooks.com/boxlang-framework/modularity/web-support/reference/built-in-functions/web/forward)
* [GetHTTPRequestData](https://boxlang.ortusbooks.com/boxlang-framework/modularity/web-support/reference/built-in-functions/web/gethttprequestdata)
* [GetHTTPTimeString](https://boxlang.ortusbooks.com/boxlang-framework/modularity/web-support/reference/built-in-functions/web/gethttptimestring)
* [GetPageContext](https://boxlang.ortusbooks.com/boxlang-framework/modularity/web-support/reference/built-in-functions/web/getpagecontext)
* [HtmlFooter](https://boxlang.ortusbooks.com/boxlang-framework/modularity/web-support/reference/built-in-functions/web/htmlfooter)
* [Location](https://boxlang.ortusbooks.com/boxlang-framework/modularity/web-support/reference/built-in-functions/web/location)
* [SetEncoding](https://boxlang.ortusbooks.com/boxlang-framework/modularity/web-support/reference/built-in-functions/web/setencoding)
