# KeepTogether

The `<keepTogether>`tag tries to keep two elements together. This means when there is a page break both elements would move to the next page. This is approximate, so it sometimes will not work.&#x20;

It can only be used within a [`<body>`](https://docs.atfinity.io/document-xml-adx/adx-elements/body).

## Example

```xml
...
<keepTogether>
  <text>Headline of the following table
  </text>
  <table>
    <tr>
      <td>SOME LONG TEXT</td>
    </tr>
  </table>
</keepTogether>
...
```

<details>

<summary></summary>

</details>
