# textAlign property

The `textAlign` property sets the horizontal alignment of text drawn using the `fillText` or the `strokeText` methods. Takes one of the possible values: `start` (default), `end`, `left`, `right`, `center` (see CSS property `text-align` for understanding these values):

## Syntax

`context.textAlign = value;`

## See also

- the `textBaseline` property
  that aligns text vertically
- the `font` property
  that sets a font size and type

← →
↑
en ru