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.

  1. Create an SVG file named vorlagen.svg.

  2. Add copyright text to this file as a group.

  3. Format the text as you like and add a hyperlink to a web page of your choice.

  4. Create a second SVG file and insert the text with the <use> tag.

  5. Test the SVG file with Batik 1.0.

Exercises 6 to 7 form a single unit.

  1. Create an SVG file and use the <image> tag to insert a GIF graphic of your choice.

  2. Add a hyperlink to a web page to this graphic too.

   

 

 

 

back to top