XML technologies / SVG / Creating simple SVG graphics / Summary, questions and exercises
(Excerpt from “Das Einsteigerseminar SVG — Webgrafiken mit XML” by Helma Spona)
Summary
SVG file contents lie between the tags
<svg>and</svg>.To define a file as an SVG graphic, define its DTD using the
<DOCTYPE>declaration.SVG tags are consistently lowercase.
Attribute names are also case-sensitive, but some contain uppercase letters.
SVG graphics can be included in an HTML page using the
<EMBED>tag or the<OBJECT>tag.The individual elements of an SVG graphic are called shapes.
Questions and exercises
What is the difference between the tags
<ellipse>and<circle>?
Exercises 2 to 5 form one exercise block.
Create an empty SVG file and save it under a name of your choice.
Insert a circle with a diameter of 20 pixels.
Fill the circle blue and give it a red border.
Create an HTML page and insert the graphic with the
<EMBED>tag.What code displays green-filled text at 50/100 in font size 12?
Copyright © verlag moderne industrie GmbH 2001
You may print the online version for your private use.
Otherwise, this chapter from “Das Einsteigerseminar SVG — Webgrafiken mit XML” is subject to the same conditions as the bound edition. The work, including all its parts, is protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
verlag moderne industrie GmbH, Justus-von-Liebig-Straße 1, D-86899 Landsberg/Lech, fon ++49 (0) 81 91 / 125 – 0, leserservice(at)mi-verlag.de