XML technologies / SVG / The coordinate system of SVG graphics / Summary, questions and exercises

(Excerpt from “Das Einsteigerseminar SVG — Webgrafiken mit XML” by Helma Spona)

Summary

  • Every SVG graphic has at least one coordinate system.

  • The graphic’s visible area can also be restricted. This area is called the viewport.

  • The transform attribute creates new coordinate systems in which individual elements or entire groups can be arranged and positioned.

  • Individual commands of the transform attribute also rotate, scale or skew elements and groups.

  • The tags <title> and <desc> describe elements.

  • To name an element, use the id attribute.

Questions and exercises

  1. How can new coordinate systems be created?

Exercises 2 to 6 form a single unit.

  1. Create an SVG file containing a small square 7 pixels wide and high.

  2. Insert text beside the square.

  3. Group both elements and name the group “Zeile1”.

  4. Position the groups at 30/70.

  5. Also rotate the group by 30°.

   

 

 

 

back to top