We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

tspan Redirect 1

Within a <text> element, text and font properties and the current text position can be adjusted with absolute or relative coordinate values by including a tspan element.

Usage context

Categories Text content element, Text content child element
Permitted content Character data and any number of the following elements, in any order:
Descriptive elements »
<a>, <altglyph>, <animate>, <animatecolor>, <set>, <tref>, <tspan>
Normative document SVG 1.1 (2nd Edition)


Source code

Unable to find file tspan.svg

Output result

Unable to find file tspan.svg

» tspan.svg


Global attributes

Specific attributes

DOM Interface

This element implements the SVGTSpanElement interface.

Browser compatibility

Feature Chrome Firefox (Gecko) IE Opera Safari
Basic support 1.0 1.5 (1.8) 9.0 9.0 3.0.4
Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support 3.0 1.0 (1.8) Not supported (Yes) 3.0.4

The chart is based on these sources.

Gecko-specific notes

Various presentation attributes don't work.

The attribute rotate was implemented in Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1).

See also

Document Tags and Contributors

Last updated by: Jeremie,