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

# Supported HTML features

Box Doc Gen lets you generate documents from an HTML template using text tags. This article describes the supported tag type and how to use it.

## Supported tag types

Box Doc Gen supports the following tag type in an HTML template:

* Text tags

## Support by generation method

Support for the tag type depends on how you generate the document.

| Tag type | API | Automate | Box web app |
| - | - | - | - |
| Text tags | Yes | No | Yes |

## Text tags

A text tag is any data field of type string, number, or date. In the following example, fields such as `companyName`, `subscriptionPlan`, `renewalDate`, and `expiryDate` are used as text tags.

```json theme={null}
{
  "companyName": "Acme Inc",
  "subscriptionPlan": "E-Advanced",
  "tcv": "100K",
  "renewalDate": "12-12-2026",
  "seatCount": "300",
  "expiryDate": "12-12-2026",
  "AETitle": "Senior Accounts Manager",
  "devCount": "30",
  "customAppsApiCallsAvg": "10000",
  "customApps": 15,
  "AccountExecutive": "John Doe"
}
```

Create an HTML template that includes the fields you want to replace dynamically. During generation, Box Doc Gen replaces the fields in double curly braces with your data.

### Formatting text tags

You can format a text tag value inline using the `::` operator. The following table displays example input formats and their output.

| Input format | Input data | Output data |
| - | - | - |
| `{{invoice.customerName :: uppercase}}` | Acme Inc | ACME INC |
| `{{invoice.customerName :: lowercase}}` | Acme Inc | acme inc |
| `{{invoice.date :: format("dd-mm-yyyy")}}` | 13-03-2023 | 13-03-2023 |
| `{{invoice.date :: format("mm-dd-yyyy")}}` | 13-03-2023 | 03-13-2023 |
| `{{invoice.date :: format("dd-mmm-yy")}}` | 13-03-2023 | 13-Mar-23 |
| `{{invoice.id :: format("xxx-xxxx")}}` | Inv1203 | Inv-1203 |
| `{{invoice.amount :: format("EU-Number")}}` | 300000 | 300.000 |
| `{{invoice.amount :: format("US-Number")}}` | 300000 | 300,000 |
