# WritingMode

> Represents literal string values for the SVG writing-mode 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) › WritingMode

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

Represents literal string values for the SVG `writing-mode` attribute.

Provides the keyword values used by the `writing-mode` attribute.

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

## Cases

| Case | Value | Description |
| --- | --- | --- |
| <span id="case-HORIZONTAL_TB"></span>`HORIZONTAL_TB` | `'horizontal-tb'` | `horizontal-tb` - Horizontal writing mode, top to bottom. |
| <span id="case-SIDEWAYS_LR"></span>`SIDEWAYS_LR` | `'sideways-lr'` | `sideways-lr` - Sideways writing mode, left to right (SVG2). |
| <span id="case-SIDEWAYS_RL"></span>`SIDEWAYS_RL` | `'sideways-rl'` | `sideways-rl` - Sideways writing mode, right to left (SVG2). |
| <span id="case-VERTICAL_LR"></span>`VERTICAL_LR` | `'vertical-lr'` | `vertical-lr` - Vertical writing mode, left to right. |
| <span id="case-VERTICAL_RL"></span>`VERTICAL_RL` | `'vertical-rl'` | `vertical-rl` - Vertical writing mode, right to left. |