"
& "Payment terms
"
& "Payment is due within " & ToText([Payment Days]) & " days of the invoice date.
"
& ""
& ""
```
In the Word template, put `~Terms HTML~` on its own line where the terms should appear, and add the field to the template's clist. The document shows a heading, a paragraph with the number of days in bold, and a two-item bulleted list with a link, all in Arial 10 pt.
## Writing HTML that converts cleanly
Exact Forms Plus doesn't require strict XHTML, but the converter is less forgiving than a web browser. To avoid errors and surprises:
- Close every tag you open: `<p>…</p>`, `<li>…</li>`, `<div>…</div>`. Don't write empty tags as `<div />`.
- Put attribute values in quotes: `<td width='40%'>`.
- Write a literal ampersand as `&`. A lone `&` with a space on each side is fixed for you.
- Line breaks: `<br>`, `<br/>`, and `<br />` all work. A stray `</br>` is removed.
- Colors: use hex values such as `#1F4E79` in `style` attributes. HSL colors from the rich text editor are converted automatically.
- Images pasted into a rich text field, and charts from quickchart.io, are converted with the rest of the HTML.
To check a piece of HTML, you can paste it into the [W3C Markup Validator](https://validator.w3.org/#validate_by_input) (**Validate by Direct Input**). Under **More Options**, choose to validate an HTML fragment, so the validator doesn't expect a full page.
## Supported tags and styles
The converter supports the common formatting tags. Exact Forms Plus doesn't remove or block any tag; anything the converter doesn't support is ignored or causes an error (see [If the HTML causes an error](/quickbase-extensions/docs/efp-include-html#errors)).
| Tags | Notes |
| --- | --- |
| `b`, `strong`, `i`, `em`, `u`, `s`, `strike`, `sub`, `sup`, `big`, `small`, `tt` | Text formatting. |
| `p`, `div`, `span`, `br`, `blockquote`, `h1`–`h6` | `p` supports `align`; `br` supports `clear`. |
| `pre` | Shown in Courier. |
| `ul`, `ol`, `li` | Bulleted and numbered lists. |
| `font` | `face`, `size`, `color`. The size values `normal` and `bigger` aren't supported. |
| `a` | `href`, `target`, `id`, `name`. |
| `table`, `thead`, `tbody`, `tfoot`, `tr`, `th`, `td` | `table`: `border`, `border-color`, `cellpadding`, `cellspacing`, `bgcolor`, `align`, `width`. `tr`: `height`, `align`. `th`/`td`: `width`, `rowspan`, `colspan`, `align`, `valign`. |
| `img` | `src`, `width`, `height`, `align`. The `src` must be a full URL. But see [Images in HTML fields](/quickbase-extensions/docs/efp-include-html#images): a field that contains an image link is normally inserted as an image, not as HTML. |
Style attributes you can use in `style="…"`:
- **Text:** `font-family`, `font-size`, `font-style`, `font-weight` (bold or normal only), `color` (hex, `#RRGGBB`), `background-color`, `text-align`, `text-decoration` (underline and strikethrough only), `text-indent`, `text-transform`, `letter-spacing`, `line-height`, `white-space`.
- **Spacing:** `margin` and `margin-top/right/bottom/left`, `padding` and `padding-top/right/bottom/left`.
- **Borders:** `border-top/right/bottom/left`, `border-color` (hex), `border-width`, `border-style`, and the per-side color, width, and style properties.
- **Lists and pages:** `list-style-type`, `list-style-image`, `page-break-before`, `page-break-after`.
## Images in HTML fields
If a field's value contains an image tag (`<img src=…>`), Exact Forms Plus inserts it as an **image**, not as HTML:
- Only the first image is used. Any other text or HTML in the field is left out.
- Set the size with an image token, for example `~i:123:200~` (200 wide). A plain `~123~` inserts the image 300 wide. See [Images](https://help.quickbase.com/quickbase-extensions/docs/en/efp-template-tokens-and-functions#images).
- If the image is inside a link, `<a href='…'><img src='…'></a>`, the link is kept on the image.
- The `src` must be a full URL starting with `http`. Files in Quickbase file attachment fields are read with your account's access. Images on other websites must be publicly accessible.
- If the image can't be downloaded, the document shows *ERROR:* followed by the URL and the reason, or *ERROR-Invalid format:* followed by the URL.
Example: to show an image from a URL field and make it a link, create a formula rich text field such as:
```plaintext
"