The <text> element is used to define a text.
Write a text:
Here is the SVG code:
For Opera users: View the SVG file (right-click on the SVG graphic to view the source).
Rotate the text:
Here is the SVG code:
For Opera users: View the SVG file (right-click on the SVG graphic to view the source).
Text on a path:
Here is the SVG code:
For Opera users: View the SVG file (right-click on the SVG graphic to view the source).
The <text> element can be arranged in any number of sub-groups with the <tspan> element. Each <tspan> element can contain different formatting and position.
Text on several lines (with the <tspan> element):
Here is the SVG code:
For Opera users: View the SVG file (right-click on the SVG graphic to view the source).
Text as a link (with the <a> element):
Here is the SVG code:
For Opera users: View the SVG file (right-click on the SVG graphic to view the source).
Your message has been sent to W3Schools.