Home > Articles

Viewing SVG

  • Print
  • + Share This
This chapter is from the book

This chapter is from the book

Workshop

The Workshop is designed to help you anticipate possible questions, review what you've learned, and begin learning how to put your knowledge into practice.

Quiz

  1. True or False: Netscape Communicator and Internet Explorer can both view SVG content without the help of a plug-in.

  2. What is the acronym used to describe SVG's compressed file format?

  3. Which element is used to insert an SVG file into an HTML document?

  4. How many viewers currently support every feature in the SVG specification?

  5. True or False: SVG can only be viewed within Web browsers.

Answers

  1. False. Neither Netscape Navigator nor Microsoft Internet Explorer can view SVG content natively without a plug-in. Both browsers require an extension of some sort to view SVG content, and most extensions/plug-ins require version 4 and above browsers.

  2. SVGZ is the shorthand acronym for SVG documents reduced in size with GZIP compression.

  3. The embed element is used to call an SVG file into an HTML document

  4. Currently, there are no SVG viewers that support every feature in the SVG specification.

  5. False. SVG can only be viewed with an SVG viewer, which can exist as a standalone application or an extension of another application (such as a browser plug-in).

Exercises

  1. Visit http://www.svgnow.com/ and check out some of the many examples. If you don't already have the Adobe SVG Viewer installed, notice how the page automatically redirects you to the Adobe site to download the plug-in right away. This is the same code you learned about at the end of this hour.

  2. Download the Adobe SVG Viewer (http://www.adobe.com/svg/viewer/install/main.html), and install it on your computer. After installing the plug-in, visit the SVG in Action section (http://www.adobe.com/svg/demos/main.html) to see some amazing examples of SVG at work.

  3. If you're really adventurous and have an Apache Web server, try installing the Batik package. Although not covered in this book, experimenting with Batik's various abilities to publish SVG content will reveal a wealth of oppor- tunities with SVG. More information on Batik can be found at http://xml.apache.org/batik/index.html.

  • + Share This
  • 🔖 Save To Your Account