XML technologies / SVG / Adding hyperlinks and external files / Summary, questions and exercises
(Excerpt from “Das Einsteigerseminar SVG — Webgrafiken mit XML” by Helma Spona)
Summary
SVG provides several tags for working with external files.
The tag
<image>can incorporate external images into an SVG graphic.JPG, PNG and GIF formats are supported.
For animated GIFs, SVG Viewer displays only the animation’s first frame.
Define hyperlinks with the
<a>tag.Its attributes also specify a target frame when the SVG graphic is displayed in a frameset.
The tag
<use>references elements from the SVG file or external SVG files for repeated use.
Questions and exercises
Exercises 1 to 5 form a single unit.
Create an SVG file named vorlagen.svg.
Add copyright text to this file as a group.
Format the text as you like and add a hyperlink to a web page of your choice.
Create a second SVG file and insert the text with the
<use>tag.Test the SVG file with Batik 1.0.
Exercises 6 to 7 form a single unit.
Create an SVG file and use the
<image>tag to insert a GIF graphic of your choice.Add a hyperlink to a web page to this graphic too.
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