# HTML canvas textBaseline Property

## HTML canvas textBaseline Property

The textBaseline property is used to sets or returns the current text baseline used when drawing text.

## Syntax:-

Its syntax is:- context.textBaseline=alphabetic | top | hanging | middle | ideographic | bottom;

## Further Explanation:-

Values Description
alphabetic Default. The text baseline is the normal alphabetic baseline
top The text baseline is the top of the em square
hanging The text baseline is the hanging baseline
middle The text baseline is the middle of the em square
ideographic The text baseline is the ideographic baseline
bottom The text baseline is the bottom of the bounding box