Q&A

Q1: Why not simply paste the code of the linked SVG file within the master SVG document?
A1: You may encounter situations where the linked SVG documents are using a different DTD, competing class names, and so forth. In such cases, linking to the outside documents allows them to display according to their directions inside the new environment. Linking thus can save a significant amount of work on the part of the developer.
Q2:I've placed an unsupported image type in my SVG document and it still renders correctly. How is this possible?
A2: SVG viewers can support additional image formats. To remain SVG compliant, they must provide a basic level of JPEG, PNG, and SVG support. However, they are free to add support for other images.

Get Sams Teach Yourself SVG in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.