# Line

The `<line>` can be used to display a line in a certain color.&#x20;

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

## Examples

```xml
<template ...>
    <line
        x1="80mm"
        x2="215mm"
        y1="330mm"
        y2="270mm"
        color="black"
        width="25"
    />
</template>
```

## Attributes

`x1, x2, y1, y2`&#x20;

Required if in a drawable context, e.g. header or footer. These are the coordinates of the two points to draw the line between

`length`

required in a flowable context, e.g. the body. Describes the length of the line. Supports %, e.g. `100%`

`width`  (**optional**)

the thickness of the line

`color`  (**optional**)&#x20;

The color of the line

<details>

<summary></summary>

</details>
