# TextAnchor

> Represents literal string values for the SVG text-anchor attribute.

[API reference](/docs/api/index.md) › [HTML SVG](/docs/extensions/html-svg/reference/index.md) › [Values](/docs/extensions/html-svg/reference/values/index.md) › TextAnchor

| enum | `UIAwesome\Html\Svg\Values\TextAnchor` |
| --- | --- |
| Backed by | `string` |
| Source | [`src/Values/TextAnchor.php`](https://github.com/ui-awesome/html-svg/blob/main/src/Values/TextAnchor.php#L14) |

Represents literal string values for the SVG `text-anchor` attribute.

Provides the keyword values used by the `text-anchor` attribute.

See also: [`Text::textAnchor()`](/docs/extensions/html-svg/reference/text/index.md#method-textAnchor).

## Cases

| Case | Value | Description |
| --- | --- | --- |
| <span id="case-END"></span>`END` | `'end'` | `end` - Text is aligned such that the end of the text is at the initial current text position. |
| <span id="case-MIDDLE"></span>`MIDDLE` | `'middle'` | `middle` - Text is aligned such that the middle of the text is at the initial current text position. |
| <span id="case-START"></span>`START` | `'start'` | `start` - Text is aligned such that the start of the text is at the initial current text position. |