> ## Documentation Index
> Fetch the complete documentation index at: https://buttercms.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# HTML field

> The ButterCMS HTML field accepts raw HTML snippets, outputs a string via the API, and bypasses editor formatting controls, so it suits custom embeds.

The **HTML** field is a raw HTML input field that provides a multi-line text input for short snippets of HTML.

> [!WARNING]
>
> Use HTML fields sparingly, as they bypass editor controls and can introduce inconsistent formatting or security concerns.

## HTML field at a glance

### Input and output

> [card] Input type
>
> Multiline code textarea

> [card] API output
>
> `string` (HTML)

### API response example

```json theme={null}
"widget_snippet": "<Tag>Here is our widget;</Tag>"
```

### Field configuration options

| `Option Name` | `Type` | `Function` |
| - | - | - |
| Required? | boolean | Make field required to save page |
| Help text | string | Add help text to describe usage to your team |
| Exclude from translation | boolean | Exclude the field from translation function |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.