![]() |
VOOZH | about |
The text-anchor attribute is used to align a text which is auto-wrapped or pre-formatted. The wrapping area is decided from the inline-size property with respect to a given point. In case of multiple line text, the alignment is made for each line. It has effect only on the following elements <altGlyph>, <text>, <textPath>, <tref>, and <tspan>
Syntax:
text-anchor = start | middle | end
Attribute Values: The text-anchor attribute accepts the values mentioned above and described below:
Example 1: Below examples illustrates the use of text-anchor attribute.
Output:
👁 ImageExample 2:
Output:
👁 ImageExample 3:
Output:
👁 Image