• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 4. Using Text in SVG > The <text> Element

The <text> Element

Looked at as SVG, text is simply another part of the source code to be rendered by an SVG viewer. Therefore, all the manipulations that are possible with other graphics can also be carried out with text. You can transform text or alter its opacity or animate it. In one sense, text in SVG is just another type of graphic to be displayed.

A <text> element contains information about the screen position of the text in x and y attributes, and the styling information may be contained in a style attribute or in individual attributes corresponding to CSS2 style properties.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint