Basic markup

  • svg - root element, its attributes:

    • xmlns - mandatory, value http://www.w3.org/2000/svg

    • version - optional, SVG version(1.0, 1.1,1.2)

    • baseProfile - optional, profile of used SVG (none, tiny, basic, full)

    • width, height - optional, picture dimensions

    • viewBox - optional, picture dimensions limits

  • title, desc - textual description of either the entire image or its part(s).

  • g - grouping of graphical primitives into a logical groups

  • defs - may contain user defined markups

  • image - used for bitmap image inclusion

  • graphical primitives:

    • path - describes polygonal lines, curves, etc.

    • rect

    • circle

    • ellipse

    • line

    • polyline

    • ...