<text x y dx dy rotate>"text"</text>
SVG
text
element draws a graphics element consisting of
text
text
, like any other SVG
graphics element
text
element, it is not rendered
text
element does not wrap by default, to make this happen it needs to
be styled with the white-space
CSS property
x
x
coordinate of the starting point of the text baseline
x
coordinate of each individual glyph if a list of
values is provided
y
y
coordinate of the starting point of the text baseline
y
coordinate of each individual glyph if a list of
values is provided
dx
dy
rotate
<div class="flex_container"> <object data="../svg/svg_example_four.svg" type="image/svg+xml"> </object> </div>
// svg_example_four.svg <svg version= "1.1" width = "300" height = "150" xmlns = "http://www.w3.org/2000/svg"> <!--outer rectangle--> <rect width="100%" height="100%" fill="lightgoldenrodyellow" /> <!--Hello--> <text x="20" y="50" style="stroke:green; fill:none; font-size:50px; font-family:serif;"> Hello </text> <!--World--> <text x="80" y="120" style="stroke:none; fill:red; font-size:50px; font-family:serif;"> World </text> </svg>