SVG text
With SVG, you can also draw... text on a web page — how about that? Plus, the browser renders the <text>
element as a graphic so you can scale or rotate it. Because it acts like text, users may select and copy it like text. The attributes x
and y
define the location of the top-left corner, whereas the fill attribute defines the fill color. You can also set the font size in pixels with the font-size
attribute.